Learn GREEK with Easy Online Lessons, Discussions
Click HERE for details...
/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

16

Hour, Minute, and Second Functions Results
hour(Time()) 16
minute(Time()) 8
second(Time()) 17
hour(Now()) 16
minute(Now()) 8
second(Now()) 17