Print Date & Time

There is a bug in the formatdate, because if you ask for MMMM. it will return the day.
For december 4, 2020, it returns “April”. taking the day for the month.

Hello,

As a workaround, you can also directly use the browser’s print header.

{{ frappe.utils.formatdate(frappe.utils.today(), 'dd-MM-YYYY') }} {{ frappe.utils.now_datetime().strftime('%H:%M') }}

1 Like