The problem with this is it does not take into account a scenario where one date is March 31 and the second date is April 1, it would show as 1 month when in fact it is only 1 day.
To get the number of months just take the remainder and multiply by 12.
Hi Bibin,
Hi Bibin,
That is an intersting question. There are probably several ways to solve this. I did it in the equation editor with the following equation:
(@year(DATE1) + (@Month(DATE1) / 12)) - (@year(DATE2)+ (@Month(DATE2)/ 12))
The problem with this is it does not take into account a scenario where one date is March 31 and the second date is April 1, it would show as 1 month when in fact it is only 1 day.
To get the number of months just take the remainder and multiply by 12.
Hope this helps.
Brian