- Set the Session.LCID value for the locale you want in the Application_OnStart or Session_OnStart functions of the Global.asa file.
For additional information, click the article number below to view the article in the Microsoft Knowledge Base:229690 HOWTO: Set the ASP Locale ID Per the Browser's Language Settings
- If you are using VBScript, call the SetLocale function from any page that uses date or time functions.
For additional information, click the article number below to view the article in the Microsoft Knowledge Base:232158 HOWTO: Use GetLocale() and SetLocale() in VBScript
- If you are using VBScript, manually format all date and time functions by using the concatenations of the Datepart function such as Day, Month and Year.
- Use JScript as the scripting language, which does not rely on the interactive user's settings for date and time formatting, because a complete date is not returned (date parts are returned from methods such as GetDate, GetMonth, and GetFullYear).
- Do not log in to the server interactively (at the console). Use Terminal Services to log into the Microsoft Windows 2000 Server.
NOTE: This workaround is not available for Microsoft Windows 2000 Professional.
- Setting the following value in the registry forces IIS 5.0 to pull the default system format for the Date and Time functions, but is not recommended for locales that use non-English character sets:HKEY_USERS\.DEFAULT\Control Panel\International\Locale = 00000409WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.
Article ID: 264063 - Last Review: Oct 18, 2012 - Revision: 1