Microsoft KB Archive/164946

{|
 * width="100%"|

HOWTO: Changing LOCLAE_IDATE Programmatically

 * }

Q164946

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK), used with:
 * Microsoft 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".

Additional query words:

Keywords : kbprogramming

Issue type : kbhowto

Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch