TimeValue

Convert a string to a Time value.

Syntax 
      TimeValue(StringTime)

Key
   StringTime     A string containing a valid time

Example

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:

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


 
Copyright © SS64.com 1999-2019
Some rights reserved