• Welcome to Valhalla Legends Archive.
 

Question about time formats.

Started by Dyndrilliac, March 24, 2004, 02:08 PM

Previous topic - Next topic

Dyndrilliac

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?
Quote from: Edsger W. DijkstraIt is practically impossible to teach good programming to students that have had a prior exposure to BASIC; as potential programmers they are mentally mutilated beyond hope of regeneration.

Grok

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")

Dyndrilliac

Thanks Grok, worked like a charm.
Quote from: Edsger W. DijkstraIt is practically impossible to teach good programming to students that have had a prior exposure to BASIC; as potential programmers they are mentally mutilated beyond hope of regeneration.