- Programming
- ASP Functions
- Response
- Dates/Times
|
ASP Hour, Minute, and Second Functions
Sponsored Ads
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
22
| Hour, Minute, and Second Functions |
Results |
 |
| hour(Time()) |
22 |
 |
| minute(Time()) |
9 |
 |
| second(Time()) |
39 |
 |
| hour(Now()) |
22 |
 |
| minute(Now()) |
9 |
 |
| second(Now()) |
39 |
|