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!

Formatting Results of DateDiff Function

Status
Not open for further replies.

NewfieGolfer

Technical User
Mar 29, 2001
80
CA
Hello All,

I'm using the DateDiff function to find the time difference between two dates. Right now I am getting the results in minutes. However, I would like to have the results formatted as follows,

Days: Hours: Minutes

So if the result (in minutes)is 1265, I would like it to be displayed as 0: 21: 5.

There is a twist. I'm also displaying a chart of the results. Right now, having the results in minutes works fine, the chart displays great. I'm worried that if I format the results, the chart will not display properly. Does anyone have advice on how to format the DateDiff result to something similar to above and still have it display appropriately in a chart as if it is in minutes?

Any help appreciated,
NG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top