/home/web-programming/asp/

ASP Hour, Minute, and Second Functions

The ASP Hour(), Minute(), and Second() functions are used to return the time in it's individual components.

ASP Coding for Hour Function

<%

Response.Write hour(Time())

%>


OR

<%

=hour(Time())

%>


Result

15

Hour, Minute, and Second Functions Results
hour(Time()) 15
minute(Time()) 27
second(Time()) 55
hour(Now()) 15
minute(Now()) 27
second(Now()) 55