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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.