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!

Converting seconds to hours/minutes/seconds

Status
Not open for further replies.

Drepso

Technical User
Jul 22, 2002
50
AU
Hi

I have a table which stores time intervals in seconds. I would like to format these to hh:mm:ss.

Can anyone help me with this?

Any help would be greatly appreciated. Thanks in Advance.

Cheers
 
Hi Drepso,

If the total is always less than 24 hours, you could convert it to a fraction of a day and use the built in format option ..

Code:
Format([YourSeconds] / 86400, "hh:mm:ss")

Enjoy,
Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top