We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

CTime::Format()  and regional settings

standefe
standefe asked
on
Medium Priority
475 Views
Last Modified: 2013-11-19
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.
Comment
Watch Question

Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview

Commented:
There's a real good discussion in the 'Going Global' site from Microsoft.

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


Commented:
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


Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.