Dateformat locale

How can I format frappe.utils.nowdate() date format YYYY/mm/dd to my country format dd/mm/YYYY ?
The fields are fine.
I’m just getting this “wrong” format when I throw an exception showing the date on server side.

Obs: my ec2 instance is located on Virginia

Hi, I think you can try

from frappe.utils import formatdate
date = formatdate(frappe.utils.nowdate(), "dd/mm/yyyy")
1 Like