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

date minimum and maximum

Status
Not open for further replies.

goat9

Programmer
Aug 21, 2003
1
US
I have a date field that and all I want to do is find the difference between the earliest date and latest date, I don't want to use any of the dates in between.....how do I accomplish this task?
 
By default, CR does date math in terms of calendar days. So all you need is a formula field:

{<end date>} - {<start date>}

It'll return the # of days between the two values.
 
I would assume you will have to find the earliest and latest dates before you do the calculation.

maximum(TABLE.DATE_FIELD) - minimum(TABLE.DATE_FIELD);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top