HOWTO: Changing LOCLAE_IDATE ProgrammaticallyLast reviewed: March 11, 1997Article ID: Q164946 |
The information in this article applies to:
SUMMARYSetLocaleInfo 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 : intlnls kbprg
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |