Returns or sets a value that specifies the current day of week.
Syntax
object.DayOfWeek [= number]
The DayOfWeek property syntax has these parts:
Part | Description |
object | An object expression that evaluates to an object in the Applies To list. |
number | A numeric expression that specifies the day of the week, as shown in Settings below. |
Settings
The settings for number are:
Constant | Value | Description |
mvwSunday | 1 | (Default) Sunday |
mvwMonday | 2 | Monday |
mvwTuesday | 3 | Tuesday |
mvwWednesday | 4 | Wednesday |
mvwThursday | 5 | Thursday |
mvwFriday | 6 | Friday |
mvwSaturday | 7 | Saturday |
Remarks
The DayOfWeek property can be set to any integer from 1 to 7.