Link to home
Start Free TrialLog in
Avatar of standefe
standefe

asked on

CTime::Format() and regional settings

Is there a way to access the Windows time/date regional settings when you are creating a format string?  For instance, my date format might be "4 Aug 98" but someone in the States might use "8/4/1998."  and it seems the same code ought to figure this out and adjust its results.
ASKER CERTIFIED SOLUTION
Avatar of psdavis
psdavis
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
There's a real good discussion in the 'Going Global' site from Microsoft.

http://www.windows.com/globaldev/gbl-gen/nlsuppor.htm


And another with an example on how to display today's date in the current locale.  There's also a small sample code at the site as well.

http://www.windows.com/globaldev/gbl-gen/nls.htm

Also, don't forget to look for the Microsoft Press® book Developing International Software.  I found it very helpful but was disappointed to see the far-east character tables used as filler.

Good Luck

Phillip