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 Powershell command: $result = [datetime] "11:59 AM"


© Copyright SS64.com 1999-2014
Some rights reserved