Current Session.LCID = 1033 | |
Current VBScript locale = 1033 |
now = 4/30/2025 9:51:41 AM |
Setting values of ... Cookie( "firstDecemberDate") to #12/01/2002# Session( "firstDecemberDate") to #12/01/2002# Cookies Session |
Notes :
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. |