VBScript constant: vbWednesday
- Updated2024-09-12
- 1 minute(s) read
Constants > Date and Time Constants > VBScript constant: vbWednesday
VBScript constant: vbWednesday
Provides a constant for the Wednesday in date functions like DateDiff, DatePart, Weekday and WeekdayName.
Object.vbWednesday
Object | VBS The constant belongs to the VBS functionality. You do not need to specify this object. |
Object.vbWednesday | Variant with read access vbWednesday has the value 4. |
The following example displays the current weekday:
Select Case Weekday(Now) Case vbSunday Call MsgBox("Sunday") Case vbMonday Call MsgBox("Monday") Case vbTuesday Call MsgBox("Tuesday") Case vbWednesday Call MsgBox("Wednesday") Case vbThursday Call MsgBox("Thursday") Case vbFriday Call MsgBox("Friday") Case vbSaturday Call MsgBox("Saturday") End Select