Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Indicates the first day of the week to use when calling date-related functions.
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 FirstDayOfWeek enumeration members.
Date-related functions also return FirstDayOfWeek values (except System).
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 |
Namespace: Microsoft.VisualBasic
Assembly: Visual Basic Runtime Library (in Microsoft.VisualBasic.dll)
How to: Refer to an Enumeration Member
Intrinsic Constants and Enumerations
DateDiff Function (Visual Basic)