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

Datetime field

Status
Not open for further replies.

demopro

Programmer
Apr 23, 2001
117
US
Hello,

I have two datetime fields (created, modified) and a calculated field (Time Taken). The Time Taken field is the difference between the Modified and Created fields. The code I am using is below.

Code:
=IF(NOT(ISBLANK([Modified])),([Modified]-[Created])*24,0)

This works fine for me in giving me the total hours between created and modified, but the problem I am having is when the Time Taken field goes over 24 hours I would want it to display 1 Day, 2:32 instead of 26:32

Thanks,
Demopro
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top