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
https://stackoverflow.com/questions/1460023/how-can-i-change-the-currentculture-of-the-entire-process-not-just-current-thre
I am using the FastReport template. How can I do it there?
edit1.text:=copy(maskedit1.text,7,10)+'/'+copy(maskedit1.text,4,2)+'/'+copy(maskedit1.text,1,2);