The information in this article applies to:
SYMPTOMS
When you use the VBScript Now(), Date(), or Time() functions, the date and
time formats differ depending on the user that is logged on to the
computer. This creates a problem for server applications that are
developed using Active Server Pages where the date or time formats are
critical, but the date or time formats change when different users log on
to the server or when no users are logged on. CAUSEThe VBScript functions Now(), Date(), and Time() rely on the Regional Settings in the computer for their formats. Regional Settings change, depending on the user logged on (or not logged on) to the computer. As a result, there is no way to guarantee that date and time formats will always be the same. RESOLUTION
To ensure that your date and time formats are consistent, do one of the
following:
STATUSThis behavior is by design. REFERENCESFor more information on VBScript and JScript, visit the MSDN Scripting site at: http://msdn.microsoft.com/scri pting Additional query words:
Keywords : kbASP kbScript kbVBScript300 kbGrpASP kbVBScript400 kbVBScript500 |
Last Reviewed: April 28, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |