![]() tips menu | printable single page version Note: this is my old ASP tips page and is no longer supported. See the new Visualize web site..
Make sure that you also change the regional settings for IUSR_machine etc. as well. There are two ways of doing this, either by logging on as each in term (you will need to set or know the passwords), or by searching/editing the registry for sShortDate and modifying them directly (only do this if you are confident with regedit!).
Check also that NT's roaming profiles do not affect the date settings when other users log on to the machine (simply write a short ASP script which displays the result returned from date(), keep refreshing the page while other users log-on to the server, and see if the date format changes). If the users are set up correctly, it shouldn't.
There also appears to be a bug in NT4 SP3 and IIS4. Despite changing all occurrences of ShortDate in the registry, the date format that you specify does not appear to take effect after a fresh reboot. It only works once at least one user has logged onto the machine and off again. Strange... if someone knows the answer to this, please drop me a line....
If you're still having problems, you should also try adding "Session.LCID = 3081" (eg is for UK) in the script. You can also use this approach to use the user's browser language settings captured from the HTTP header info. See this Microsoft Multi-language Support KB article for more details. This also contains the codes for other countries.
DISCLAIMER: Note these pages are a free resource for anyone wishing to reference them. Although every care is taken to ensure their correctness, the author takes no responsibility for any errors or problems that may occur through their use, or indeed misuse. These pages are copyight of Dave Clarke, Visualize Software Ltd 1997-2000 (all rights reserved).
© Copyright Dave Clarke, 1996-2008
|