DIAdem Help

Method: TimeValue for VBS

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

Method: TimeValue for VBS

Specifies a time with the Date subtype.

vTimeValue = Object.TimeValue(Time)
ObjectVBS
Object with this method. You do not need to specify this object.
TimeVariant
Specifies an expression which the TimeValue method can transform into a range between 0:00:00 and 23:59:59. The method uses the 24 hour and the 12 hour clock.
vTimeValueVariant
Receives a time.

The following example converts a text into a time:

Dim MyTime
MyTime = TimeValue("11:55:00 PM")
Call MsgBox(MyTime)

Related Topics

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