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

datediff, how do I make sure I have first and last date/time 1

Status
Not open for further replies.

mgason

Technical User
Feb 6, 2003
158
AU
Hi,
I do understand how to use datediff to get the difference between two date/time fields.
BUT I have a report which has returned a long list of date/times.
I have ordered those by time.
How can I write a formula that gets the diff between the earliest and latest date/time.

thanks
mark
 
Sorry forgot to say Crystal XI
also to be clear, the problem is making sure I have the first and last date/time to calculate the diff from.
 
datediff("d",Maximum({table.date),{table.fieldx}),Minimum({table.date},{table.fieldx}))

Not sure about the makeup of your group structure

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top