2006-09-11 05:29:31 AM cppbuilder41
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.
2006-09-11 05:53:15 AM
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";