DIAdem Help

Method: DateValue for VBS

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

Method: DateValue for VBS

Specifies a date with the Date subtype.

vDateValue = Object.DateValue(Date)
ObjectVBS
Object with this method. You do not need to specify this object.
DateVariant
Specifies an expression which the DateValue method can convert into a date from the range between January 100 to December 31, 9999.
vDateValueVariant
Receives a date.

The following example displays a date:

Dim MyDate
MyDate = DateValue("September 30, 2011")   ' Returns a date

Related Topics

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