|
Display the Day / Hour / Month / Minute / Second
etc
In this example we will show how to display various
date and time information .
Code :
<%
'we will display various date / time information
'we are using Now as our value in every example
'display the year
Response.Write Year(Now) & "<br>"
'display the month
Response.Write Month(Now) & "<br>"
'display the day
Response.Write Day(Now) & "<br>"
'display the hour
Response.Write Hour(Now) & "<br>"
'display the minute
Response.Write Minute(Now) & "<br>"
'display the second
Response.Write Second(Now) & "<br>"
%>
|