cur_frm.set_value(‘last_synced’, frappe.data.now_datetime ());
frm.refresh_field(‘last_synced’);
hi
pls try this
frappe.datetime.now_datetime()
1 Like
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
2 Likes
thank you sir this is really useful information for me. thanks a lot.