Export (0) Print
Expand All

FirstDayOfWeek Enumeration

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.

FirstDayOfWeek Enumeration Members

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).


Namespace: Microsoft.VisualBasic

Assembly: Microsoft Visual Basic .NET Runtime (in Microsoft.VisualBasic.dll)

See Also

Intrinsic Constants and Enumerations | FirstWeekOfYear Enumeration | DateFormat Enumeration | DateDiff Function | DatePart Function | Format Function | Weekday Function

© 2015 Microsoft