VBScript TimeValue Function

The TimeValue function returns a Variant of subtype Date that contains the time."

Example

Example

<%

response.write(TimeValue("5:55:59 PM") & "<br />")
response.write(TimeValue(#5:55:59 PM#) & "<br />")
response.write(TimeValue("15:34"))

%>

The output of the code above will be:

5:55:59 PM
5:55:59 PM
3:34:00 PM

❮ Complete VBScript Reference