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

Formula help converting minutes

Status
Not open for further replies.

TechUser23

IS-IT--Management
Mar 8, 2007
28
US
Perhaps I'm missing something obvious....

I have three data fields I'm trying to base three formula's on.

Data Fields:
{data.ArrivalTime}
{data.WithProvider}
{data.CompletedTime}

Formulas:
Wait Time: {data.WithProvider} - {data.ArrivalTime}
Provider Time: {data.CompletedTime} - {data.WithProvider}
Total Time: {data.CompletedTime} - {data.ArrivalTime}

When I enter my three formulas as I have my time is coming back as "0" .... ?? Did I miss something obvious? Can anyone assist me and see an issue? I right clicked on my formula fields and changed the formatted the field to -1123. Im lost and sure could use some help.
 
Are these fields of time datatype? Try using a formula like:

datediff("n", datetime(currentdate,{data.ArrivalTime}), datetime(currentdate,{data.CompletedTime}))

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top