Date custom script

you can use the following functions to achieve your functionality.

frappe.datetime.get_today()
frappe.datetime.get_day_diff("2016-05-05", "2016-05-03" )
frappe.datetime.add_days("2016-05-03", 2)
2 Likes