Microsoft® Visual Basic® Scripting Edition Date and Time Constants |
Language Reference Version 2 |
Since these constants are built into VBScript, you don't have to define them before using them. Use them anywhere in your code to represent the values shown for each.
Constant Value Description vbSunday 1 Sunday vbMonday 2 Monday vbTuesday 3 Tuesday vbWednesday 4 Wednesday vbThursday 5 Thursday vbFriday 6 Friday vbSaturday 7 Saturday vbUseSystem 0 Use the date format contained in the regional settings for your computer. vbUseSystemDayOfWeek 0 Use the day of the week specified in your system settings for the first day of the week. vbFirstJan1 1 Use the week in which January 1 occurs (default). vbFirstFourDays 2 Use the first week that has at least four days in the new year. vbFirstFullWeek 3 Use the first full week of the year.