|Current Session.LCID = 1033|
|Current VBScript locale = 1033|
now = 9/21/2019 6:57:12 PM
Setting values of ...
Cookie( "firstDecemberDate") to #12/01/2002#
Session( "firstDecemberDate") to #12/01/2002#
CDate recognizes date formats according to the locale setting of your system. The correct order of day, month, and year may not be determined if it is provided in a format other than one of the recognized date settings. In addition, a long date format is not recognized if it also contains the day-of-the-week string.
The following example uses the CDate function to convert a string to a date. In general, hard coding dates and times as strings is not recommended. For example Cookie( "firstDecemberDate").month (above) will on some systems be shown as January. Use date and time literals (such as #10/19/1962#, #4:45:23 PM#) instead.