/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

3

Hour, Minute, and Second Functions Results
hour(Time()) 3
minute(Time()) 3
second(Time()) 34
hour(Now()) 3
minute(Now()) 3
second(Now()) 34