months_diff
Calculates the month difference between two dates.
Subtract
start
fromend
and usedatetime.timedelta.days
to get the day difference.Divide by
30
and usemath.ceil()
to get the difference in months (rounded up).
Last updated
Calculates the month difference between two dates.
Subtract start
from end
and use datetime.timedelta.days
to get the day difference.
Divide by 30
and use math.ceil()
to get the difference in months (rounded up).
Last updated