Method: TimeValue for VBS
- Updated2024-09-12
- 1 minute(s) read
Methods > Method: TimeValue for VBS
Method: TimeValue for VBS
Specifies a time with the Date subtype.
vTimeValue = Object.TimeValue(Time)
| Object | VBS Object with this method. You do not need to specify this object. |
| Time | Variant 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. |
| vTimeValue | Variant Receives a time. |
The following example converts a text into a time:
Dim MyTime MyTime = TimeValue("11:55:00 PM") Call MsgBox(MyTime)
See Also
Related Topics
DateAdd | DateDiff | DatePart | DateSerial | DateValue | Date | Day | Hour | Minute | MonthName | Month | Now | Second | TimeSerial | TimeValue | Time | Timer | Weekday | WeekdayName | Year