I’m trying to get a “now” datetime to auto-populate in a custom datetime field. I’ve been able to do this by adding “Now” to a time field and “Today” to a date field as defaults in the doctype. What should I use for this with a datetime field?
Through Custom code, you could use
- frappe.utils.data.now ()
- frappe.utils.data.now_datetime ()
Thanks @Pawan, I was hoping for a shortcut.