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