This function converts an expression to a whole number that represents the day of the week.
Weekday(date, [firstdayofweek])
Constant |
Value |
Description |
vbUseSystem | 0 | Use National Language Support (NLS) API setting |
vbSunday | 1 | Sunday |
vbMonday | 2 | Monday |
vbTuesday | 3 | Tuesday |
vbWednesday | 4 | Wednesday |
vbThursday | 5 | Thursday |
vbFriday | 6 | Friday |
vbSaturday | 7 | Saturday |
The following table shows the return values of the Weekday function.
Constant |
Value |
Description |
vbSunday | 1 | Sunday |
vbMonday | 2 | Monday |
vbTuesday | 3 | Tuesday |
vbWednesday | 4 | Wednesday |
vbThursday | 5 | Thursday |
vbFriday | 6 | Friday |
vbSaturday | 7 | Saturday |