HOWTO: Changing LOCLAE_IDATE Programmatically
Article ID: 164946
Article Last Modified on 7/11/2005
APPLIES TO
- Microsoft Platform Software Development Kit-January 2000 Edition, 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".
Keywords: kbhowto kbprogramming KB164946