HOWTO: Changing LOCLAE_IDATE Programmatically

Last reviewed: March 11, 1997
Article ID: Q164946
The information in this article applies to:
  • Microsoft Win32 Software Development Kit (SDK) on the following platforms: - Windows 95

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 : intlnls kbprg
Platform : NT WINDOWS
Issue type : kbhowto


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 11, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.