TimeValue

Convert a string to a Time value.

Syntax 
      TimeValue(StringTime)

Key
   StringTime     A string containing a valid time

Examples

result = TimeValue("14:30")
WScript.Echo result
> 14:30:00

“Time is more valuable than money. You can get more money, but you cannot get more time” ~ Jim Rohn

Related VBScript commands

TimeSerial - Construct a Time value from Hours and Minutes.
Equivalent in PowerShell: $result = [datetime] "11:59 AM"


 
Copyright © 1999-2024 SS64.com
Some rights reserved