on 10-05-2009 7:15 PM
I want to be able to return a value that states : "2 Years-7 Month-12 Days" between the two dates?
Hi,
You can achieve the same using the following steps. The mentioned steps are to calculate them at the report level.
If you want to calculate them at the DB level you can convert the same.
Years = MonthsBetween(date1;date2)/12
Months = (MonthsBetween(date1;date2) - (Years *12))
Days = DaysBetween(date1;date2) - ( Years * 365 + Months * 30 )
Then Concatenate the three variables to get the required result.
Regards,
Rohit
Edited by: rohit12 on Oct 6, 2009 2:41 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.