cur_frm.set_value(‘last_synced’, frappe.data.now_datetime ());
pls try this
Thank you sir its working now.
sir but can you tell me what was the error.
frappe.data it not an attribute correct attribute is frappe.datetime.now_datetime()
if you want to get all available attributes/methods then just type frappe in the console
thank you sir this is really useful information for me. thanks a lot.