Board index » cppbuilder » change system date format

change system date format


2006-09-11 05:29:31 AM
cppbuilder41
Hello world
How can we change system date format through C++ Builder. In regional
settings i have m/d/yyyy.
If i run my program i have to have format d/m/yyyy.
Any suggestions greatly appreciated.
SA
 
 

Re:change system date format

I use this in one of my apps:
SetLocaleInfo(LOCALE_SYSTEM_DEFAULT, LOCALE_SSHORTDATE, "MM/dd/yyyy");
ShortDateFormat = "MM/dd/yyyy";
HTH, Don