HOWTO: Changing LOCLAE_IDATE Programmatically

ID: Q164946

The information in this article applies to:

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".

Keywords          : kbprg intlnls 
Platform          : NT WINDOWS
Issue type        : kbhowto

Last Reviewed: March 12, 1997