This function retrieves a string indicating the specified day of the week.
WeekDayName(weekday, [abbreviate], [firstdayofweek])
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 |
Returns a string that indicates the day of the week.
If the weekday parameter is fractional, it is rounded to the nearest even integer before it is evaluated.