ASP/VBScript TimeValue() Returns a Variant of subtype Date containing the time.
ShotDev Focus:
- Using Asp and TimeValue() function.
Syntax
TimeValue(time)
TimeValue(tiThe time argument is usually a string expression representing a time from 0:00:00 (12:00:00 A.M.) to 23:59:59 (11:59:59 P.M.), inclusive. However, time can also be any expression that represents a time in that range. If time contains Null, Null is returned.me)
Example
asp_timevalue.asp
<% Option Explicit %>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<%
Response.write TimeValue("22:35:17 PM")&"<br>"
Response.write TimeValue("22:35:17")&"<br>"
Response.write TimeValue("12:35:17")&"<br>"
%>
</body>
</html>
Create a asp file and save to path root-path/myasp/
Run
http://localhost/myasp/asp_timevalue.asp
Screenshot


