Soak the Dates: Place chopped dates in a bowl and pour hot coffee over them. Let this mixture sit for 15 minutes to soften the dates and infuse them with coffee flavor. The dates will absorb some of the liquid and become plump and soft.
Prepare Oven and Pan: Preheat your oven to 350°F (175°C). Grease and line a 9x5-inch loaf pan with parchment paper, allowing some overhang for easy removal after baking.
Mix Dry Ingredients: In a medium bowl, whisk together the flour, baking soda, baking powder, salt, cinnamon, and nutmeg until well combined. This ensures even distribution of leavening agents and spices throughout the batter.
Cream Butter and Sugar: In a large bowl, beat the softened butter and granulated sugar together using an electric mixer on medium speed for about 3-4 minutes, until the mixture becomes light in color and fluffy in texture.
Add Eggs and Vanilla: Add eggs one at a time to the butter-sugar mixture, beating well after each addition to fully incorporate. Mix in the vanilla extract until combined. This gradual addition helps create a smooth, emulsified batter.
Incorporate Date Mixture: Stir the soaked date and coffee mixture (including any remaining liquid) into the batter until evenly distributed. The coffee-soaked dates will add moisture and deep flavor to the cake.
Combine Wet and Dry Ingredients: Gently fold the dry ingredient mixture into the wet ingredients until just combined. Fold in the chopped walnuts, being careful not to overmix as this can develop too much gluten and result in a tough cake.
Bake the Cake: Pour the batter into the prepared loaf pan and smooth the top with a spatula. Bake in the preheated oven for 50-55 minutes, or until a toothpick inserted into the center comes out clean or with a few moist crumbs attached.
Cool the Cake: Allow the cake to cool in the pan for about 15 minutes, then use the parchment paper overhang to lift it out onto a wire rack to cool completely before glazing.
Prepare and Apply Glaze: In a small bowl, whisk together the powdered sugar, espresso, and melted butter until smooth. Adjust consistency with more powdered sugar or espresso as needed. Once the cake is completely cool, drizzle the glaze over the top, allowing it to run down the sides.