bahaou
#1
hello community , how to calculate the diff between two dates in custom script (in days)
Your core logic will be as follows:
frappe.datetime.get_day_diff(frm.doc.due_date,frm.doc.posting_date)
frappe.datetime.get_day_diff()
is the function you’ll need to use:
5 Likes