Can not format date to MM/dd/yyyy.

Hi

i want to display my report date in MM/dd/yyyy. Ex. 01/14/2021(today). So i used Format("{0:MM/dd/yyyy}", DateTime.Now) as far the documents. But it displays the date in MM-dd-yyyy(01-04-2021) format. I have also tried FormatDateTime(DateTime.Now, "Short Date") and get the same result.

How can I fix this? I mean how can i display the date in MM/dd/yyyy format.

Anyone experience the same thing?

Comments

Leave a Comment