Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: Dyndrilliac on March 24, 2004, 02:08 PM

Title: Question about time formats.
Post by: Dyndrilliac on March 24, 2004, 02:08 PM
I've been using

"[" & Format(Time, "HH:mm:ss") & "] "

For my time stamps, but this is 24 hour style, I searched msdn on how to make it 12 but it wasnt much help, the only thing I could find was some mumbo jumbo about "medium time". Can someone show me how a 12 hour time stamp looks?
Title: Re:Question about time formats.
Post by: Grok on March 24, 2004, 02:18 PM
Quote from: GoSuGaMING on March 24, 2004, 02:14 PM
if you dont want it a 24 hour time stamp just make it easy on ur self and make it a simple way...  and do something easy like

that will auto add the PM or AM also

*SNIP* your useless code submission.  It had nothing to do with AM PM formatting of time.  Copying code you cannot even READ and submitting it as a solution for someone is another waste of our time.  Everyone is pretty damned tired of your posts.

Dyndrilliac:
Format(Now, "HH:MM:SS AMPM")
Title: Re:Question about time formats.
Post by: Dyndrilliac on March 24, 2004, 02:53 PM
Thanks Grok, worked like a charm.