Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Short Time

Status
Not open for further replies.

MeGGaN

Programmer
Feb 4, 2003
45
MX
Hello!

I'm using this line to print and save current time:
vlSHora = Str(Time)

It gaves me a string like: 09:53:54 p.m.

What I need is the 24 hour format (I've read that I can do that with short time). I need the hour to look like: 21:53:54

I can't seem to find a way to format the Time value to short time.

If anyone knows how to do that or has another idea please tell me! :)

Magda
 
Thank you very much!

I did this: vlSHora = Format(Time, "h:m:ss") and it worked just fine :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top