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

Date Diff formula

Status
Not open for further replies.

Thant

Technical User
Dec 31, 2007
103
0
0
US
I have a formula im trying to get to work. it should show the difference between two time fields
Code:
DateDiff (d,{orders.order_date} {shipments.arrive_in_area} )
When i run this i get " the ) is missing and it places it after the d,.

Ive got to be missing something simple
thanks


Anything worth doing is worth messing up at least 5 times before you get it right!
 
DateDiff (d,{orders.order_date}, {shipments.arrive_in_area} )

It appears you are missing a comma.
 
It is still saying the ) is missing
thanks

Anything worth doing is worth messing up at least 5 times before you get it right!
 
DateDiff ("d",{orders.order_date},{shipments.arrive_in_area})

Missing the quotes. This returns the difference in days.

"h" for hours
"n" for minutes //to distinguish it from "m" for months
"s" for seconds

-LB
 
I looked too quick, thought I was missing something. Too many days off (vacation last week). :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top