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.
Function Declaration
-
Function WeekdayName(Weekday As Long, Optional Abbreviate As Boolean = False, Optional FirstDayOfWeek As VbDayOfWeek = vbUseSystemDayOfWeek) As String
|
Parameter |
Description |
|---|---|
|
Weekday |
Long containing the numeric designation for the day of the week. Numeric value of each day depends on setting of the FirstDayOfWeek setting. |
|
Abbreviate |
Boolean value that indicates if the weekday name is to be abbreviated. If omitted, the default is False, which means that the weekday name is not abbreviated. |
|
FirstDayOfWeek |
Numeric value indicating the first day of the week. See the next table in this section for values. |
Runtime Semantics.
§ Returns a String indicating the specified day of the week.
§ The FirstDayOfWeek argument can have the following values:
|
Constant |
Value |
Description |
|---|---|---|
|
vbUseSystem |
0 |
Use National Language Support (NLS) API setting. |
|
vbSunday |
1 |
Sunday (default) |
|
vbMonday |
2 |
Monday |
|
vbTuesday |
3 |
Tuesday |
|
vbWednesday |
4 |
Wednesday |
|
vbThursday |
5 |
Thursday |
|
vbFriday |
6 |
Friday |
|
vbSaturday |
7 |
Saturday |