web 2.0

ASP/VBScript TimeValue()

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

ASP/VBScript & TimeValue()

.
.
.
Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (1 votes, average: 1.00 out of 10)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.