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

Subtracting two Dates, converting to seconds

Status
Not open for further replies.

radonc

Programmer
Jan 16, 2002
5
0
0
US
I have read the FAQs for elapsed time but am caught at an intermediate step. I have two DateTimeValues, i.e.

2/21/2002 9:28:32AM
2/27/2002 2:14:44PM

when i subtract them, it returns "6.20"

I would like for it to return the total number of seconds between the two dates, so that i can plug it into the DD:HH:MM:SS formula. Any suggestions? Thanks.
 
This is giving you the number of days between the times. Multiply by the number of seconds in a day and you get your answer.
 
its official . . . . . i am a moron.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top