Hi,
I want to check the date if the date is sunday or not,
i tried by giving manual SUNDAY date for differentiate but its giving garbage value,
var check_sunday = frappe.datetime.get_day_diff( “20/05/2018” , frm.doc.period_start_date );
// I will do some logics here to check if it is sunday or not.