PDA

View Full Version : Getting Time and Date Simplified


admin
06-05-2003, 02:01 PM
I have seen alot of people trying to get hour by using instr etc.. you can just as easily get the hour by doing this:

<%
' For time
thehour = hour(time)
theminute = minute(time)
thesecond = second(time)

' For date its like this :
themonth = month(date)
theday = day(date)
theyear = year(date)

Response.write (thehour)
%>

By Jason