I used custom html for fetch date from doctype to print format. But Its fetching in YYYY-MM-DD format. I need DD-MM-YYYY format.
@Syed_Ahamed use this
{{frappe.format(doc.posting_date, {'fieldtype': 'Date'})}}
change the field name as per your requirment.
1 Like
You can also use the get_formatted
to get the default date format.
{{ doc.get_formatted('posting_date') }}
1 Like