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 Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting time calculations 1

Status
Not open for further replies.

ddrake

Technical User
Mar 19, 2003
92
Hi all!
I've got a couple of date/time fields in my report that I subtract one from the other. What I get is in seconds. I then convert the seconds to hours and report that value. Of course, it is shown like 204.5 hours. However, we'd like to convert/format that data to show in HH:MM:SS like Excel shows it. Has anyone ever done something like this? Thanks!
Dave

ex. (1/1/2004 12:00:00 AM - 1/1/2003 12:00:00 AM) = 31536000 seconds or 525600 minutes or 8760 hours


Crystal 9.0, SQL 2K, Win2K Server
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top