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

How can i found the time(hh:mm:ss) between two tdatetime 1

Status
Not open for further replies.

Szilveszter

Technical User
Aug 23, 2010
1
GB
Hi,
I need a time between to date.
I want to count the time between log in and log out.
If I press a button "log in" then a date will be the begindate, and if I press the button "log out" then will be written out that how many hour, minute and second i have spend between log in and log out.
thanks for the answers, if it can be understand me
:)

 
The time apart in seconds would be:

(LogOutTime - LogInTime) * 24 * 60 * 60

and from there you can figure out the number of hours, minutes and seconds.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top