How to calculate the months difference between two dates. For example,
if from_date='2011-07-06', to_date='2012-01-01", months should come as 5 and days=days between (2011-12-06 and 2012-01-01)
if from_date='2011-07-06", to_date='2012-01-06", months should come as 6.
Can anyone please help me out form this issue?
if from_date='2011-07-06', to_date='2012-01-01", months should come as 5 and days=days between (2011-12-06 and 2012-01-01)
if from_date='2011-07-06", to_date='2012-01-06", months should come as 6.
Can anyone please help me out form this issue?