Date time format error

Hi @Harsh_Garg

Try this syntax:

DateTime.Now.Tostring("dd-MMM-yyyy")
The above syntax will print first 3 letters of Month name.

Refer the image:

DateTime.Now.Tostring("dd-MMMM-yyyy")
The above syntax will print with whole Month name.

Refer the image:

Hope it helps!!
Regards,

2 Likes