web 2.0

ASP/VBScript Second()

ASP/VBScript Second() Returns a whole number between 0 and 59, inclusive, representing the second of the minute.

ShotDev Focus:
- Using Asp and Second() function.

Syntax


Second(time)

The time argument is any expression that can represent a time. If time contains Null, Null is returned.

Example

asp_second.asp


<% Option Explicit %>
<html>
<head>
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<%
Response.write Second(Now())&"<br>"
Response.write Second("01-Sep-2008 12:50:10")&"<br>"
%>
</body>
</html>

Create a asp file and save to path root-path/myasp/

Run
http://localhost/myasp/asp_second.asp

Screenshot

ASP/VBScript & Second()

.
.
.
Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.