Concatenate words in hour format

1

I am using the following method to establish a custom day and time format in VB.NET. However, I want the day and time to be displayed as seen in Windows when you place the cursor over the time "Ex: July 25, 2017"):

DateTime.Now.ToString("dd  de MMMM yyyy HH:mm")

How could I do it without failing in the attempt? If I leave it as it is, the "from" becomes 25e, which is not correct.

Greetings and thanks in advance for the help.

    
asked by KPavezC 25.07.2017 в 16:56
source

1 answer

5

You just have to escape the text with single quotes ' :

DateTime.Now.ToString("dd  'de' MMMM yyyy HH:mm")
    
answered by 25.07.2017 / 17:00
source