eriktoronto
Programmer
I am trying to calculate the term between two dates (MM/DD/YYYY format) using Crystal Reports XI.
Examples:
start date: 01/13/2006
end date: 01/12/2011
I think the result should be: 4 years, 11 months, 29 days
start date: 06/26/2006
end date: 08/31/2011
I think the result should be: 5 years, 2 months, 5 days
I am trying the DateDiff formula, and it allows me to calculate the numbers of years, months, or days between the two dates. For example, for the number of months:
DateDiff("m",{@Start Date},{@End Date}))
would give me the number of months between the dates
But does anyone know of a formula or any suggestions on how I can calculate the term:
ie: x years, y months, z days
I'll keep working on it. Thank you!
Examples:
start date: 01/13/2006
end date: 01/12/2011
I think the result should be: 4 years, 11 months, 29 days
start date: 06/26/2006
end date: 08/31/2011
I think the result should be: 5 years, 2 months, 5 days
I am trying the DateDiff formula, and it allows me to calculate the numbers of years, months, or days between the two dates. For example, for the number of months:
DateDiff("m",{@Start Date},{@End Date}))
would give me the number of months between the dates
But does anyone know of a formula or any suggestions on how I can calculate the term:
ie: x years, y months, z days
I'll keep working on it. Thank you!