Method: WeekdayName for VBS
- Updated2024-09-12
- 1 minute(s) read
Methods > Method: WeekdayName for VBS
Method: WeekdayName for VBS
Specifies the name of the weekday.
vWeekdayName = Object.WeekdayName(Weekday, abbreviate, firstdayofweek)
| Object | VBS Object with this method. You do not need to specify this object. |
| Weekday | Variant Specifies a numeric value that specifies the weekday. The weekday depends on the firstdayofweek setting. |
| abbreviate | Variant Specifies whether the WeekdayName method abbreviates a name of the weekday. If you do not enter this value, the method uses the False value and does not abbreviate the name. |
| firstdayofweek | Variant Specifies the first day of the week. Possible values are vbSunday, vbMonday, vbTuesday, vbWednesday, vbThursday, vbFriday, and vbSaturday. If you do not specify this value, the method uses vbSunday. |
| vWeekdayName | Variant Specifies the name of the weekday. |
The following example displays the current weekday:
Dim iMyWeekDay, sMyWeekDay iMyWeekDay = Weekday(Now) sMyWeekDay = WeekDayName(iMyWeekDay) Call MsgBox(sMyWeekDay)
See Also
Related Topics
DateAdd | DateDiff | DatePart | DateSerial | DateValue | Date | Day | Hour | Minute | MonthName | Month | Now | Second | TimeSerial | TimeValue | Time | Timer | Weekday | WeekdayName | Year