DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

VBScript constant: vbWednesday

VBScript constant: vbWednesday

Provides a constant for the Wednesday in date functions like DateDiff, DatePart, Weekday and WeekdayName.

Object.vbWednesday
ObjectVBS
The constant belongs to the VBS functionality. You do not need to specify this object.
Object.vbWednesdayVariant 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
In This Section
Was this information helpful?