Date and Time Constants
- Updated2024-09-12
- 1 minute(s) read
Constants > Date and Time Constants
Date and Time Constants
These constants are integrated in VBS and need not be defined before use. Use these constants anywhere in your script to represent the displayed values.
| 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 | Date format specified in the country settings |
| vbUseSystemDayOfWeek | 0 | Day specified as first day of the week in the country settings |
| vbFirstJan1 | 1 | Week of January 1. |
| vbFirstFourDays | 2 | First week with at least four days in the new year. |
| vbFirstFullWeek | 3 | First full week of a year |