HOWTO: Changing LOCLAE_IDATE Programmatically (164946)
The information in this article applies to:
- Microsoft Platform Software Development Kit (SDK) 1.0, when used with:
This article was previously published under Q164946 SUMMARY
SetLocaleInfo only accepts a sub-set of the locale types constants.
SetLocaleInfo does not accept the locale types for dates (LOCALE_IDATE and
LOCALE_ILDATE). You can set LOCALE_IDATE (or LOCALE_ILDATE)
programmatically by setting LOCALE_SSHORTDATE (for LOCALE_ILDATE,
LOCALE_SLONGDATE) appropriately. This will set LOCALE_IDATE automatically
to match whatever format string you passed in. For example, if the
current LOCALE_SDATE is "/", the current locale_IDATE is "0", and then you
se LOCALE_SSHORTDATE to "d/m/yy" using SetLocaleInfo(), LOCALE_IDATE will
automatically be set to "1".
Modification Type: | Minor | Last Reviewed: | 7/11/2005 |
---|
Keywords: | kbhowto kbprogramming KB164946 |
---|
|