Forums

ASP

This topic is locked

How to display 24 hour time format

Posted 10 Oct 2006 16:40:53
1
has voted
10 Oct 2006 16:40:53 Fouad Akhtar posted:

when i run <% response.Write(Now()) %> ASP script, the time displays as "10/10/2006 04:35:22 PM".

Is there a way to make it displayed in 24 hours format.??
Just like >>>> "10/10/2006 16:35:22 "

Thanks

Replies

Replied 15 Oct 2006 08:06:39
15 Oct 2006 08:06:39 micah santos replied:
note:
this will display the current hour

Dim theHour

theHour=Hour(Now)'we pass in the Now function as a parameter

Response.write theHour

Replied 15 Oct 2006 22:43:30
15 Oct 2006 22:43:30 Fouad Akhtar replied:
thanks, i appreciate your help

Reply to this topic