When you call date-related functions, you can use the following enumeration members in your code in place of the actual values.
Some date-related functions take a DayOfWeek argument, a WeekOfYear argument, or both. The FirstDayOfWeek enumeration specifies the valid values for the DayOfWeek arguments, as well as the possible return values from the functions.
The DayOfWeek argument takes the following FirstDayOfWeek enumeration members:
Member | Constant | Description |
---|---|---|
System | vbUseSystemDayOfWeek | The first day of the week as specified in your system settings |
Sunday | vbSunday | Sunday (default) |
Monday | vbMonday | Monday |
Tuesday | vbTuesday | Tuesday |
Wednesday | vbWednesday | Wednesday |
Thursday | vbThursday | Thursday |
Friday | vbFriday | Friday |
Saturday | vbSaturday | Saturday |
Date-related functions also return FirstDayOfWeek values (except System).