X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR BOOTSTRAP XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

VBScript TimeValue Function


VBScript Reference Complete VBScript Reference

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

Syntax

TimeValue(time)

Parameter Description
time Required. A time from 0:00:00 (12:00:00 A.M.) to 23:59:59 (11:59:59 P.M.) or any expression that represents a time in that range

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

Show Example »


VBScript Reference Complete VBScript Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook