In a medium mixing bowl, combine the softened cream cheese, granulated sugar, and vanilla extract. Beat the mixture until smooth and creamy using a hand mixer or whisk.
Carefully unroll each tube of refrigerated crescent roll dough onto a parchment-lined baking sheet. Press the perforations together to seal them, creating one large rectangular sheet per tube.
Spread the cream cheese mixture evenly over half of each dough rectangle, leaving a small border around the edges.
Spoon small dollops of seedless raspberry or apricot jam on top of the cream cheese filling without overdoing it.
Fold the dough over the filling to form a neat rectangle and press the edges firmly to seal the filling inside.
Brush the tops of the folded dough with the beaten egg. Sprinkle the sliced almonds evenly across the top.
Bake the danishes in a preheated oven at 375°F (190°C) for 15-18 minutes or until golden brown and puffed.
Allow the danishes to cool slightly before slicing and serving. Enjoy warm or at room temperature.