Number of months between two dates

is any frappe function for getting number of months between two dates

Hi @jayakumar:

Try

frappe.utils.date_diff(date_1, date_2) / 30

Hope this helps.

2 Likes

You can use this:

months=frappe.utils.month_diff(end_date,start_date)
2 Likes