This topic is locked

Need military time

2/24/2004 2:27:54 PM
ASPRunnerPro General questions
C
cyberville_boy author

Hi there,

How do you get the time in the military format. I have 00:00:45 in my database but on the asp page it shows as 12:00:45 AM which I do not want it. I want it to be just like the daabase.
Thanks.

swat 2/24/2004

hi-
If you data field formated as military time in database , you can use this ASP code while you are displaying the data .



<%= FormatDateTime(............... , 4)%>

This should work ..

<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=1177&image=1&table=forumreplies' class='bbc_emoticon' alt=';)' />

501013 2/25/2004

It works but the seconds are missing. I tried to look at for the 24 hr setting but that is the best I could find. Thanks.