DIAdem Help

Method: WeekdayName for VBS

  • Updated2024-09-12
  • 1 minute(s) read

Method: WeekdayName for VBS

Specifies the name of the weekday.

vWeekdayName = Object.WeekdayName(Weekday, abbreviate, firstdayofweek)
ObjectVBS
Object with this method. You do not need to specify this object.
WeekdayVariant
Specifies a numeric value that specifies the weekday. The weekday depends on the firstdayofweek setting.
abbreviateVariant
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.
firstdayofweekVariant
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.
vWeekdayNameVariant
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)

Related Topics

DateAdd | DateDiff | DatePart | DateSerial | DateValue | Date | Day | Hour | Minute | MonthName | Month | Now | Second | TimeSerial | TimeValue | Time | Timer | Weekday | WeekdayName | Year