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

Date Diff

Status
Not open for further replies.

rhoneyfi

MIS
Apr 8, 2002
200
US
Easy question. I have CR 9.0

I have two dates that I want to calculate the date difference. I would like the format that is returned to be in years months days. Thanks


 
You woudl need to write 3 different datediff() functions, one to return years, one months and one days, and concatenate the results together.

Or you can download the UFL to do this from crystal decisions.

Software Sales, Training, Implementation and Support for Exact Macola, eSynergy, and Crystal Reports
 
The datediff function would return all of the months/days, so you'd want to base those on the Remainder function.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top