Hi!
Is it possible to format fields in standard reply the same way as in print format?
I’m getting dates in YYYY-MM-DD format. I would like it to be DD-MM-YYYY.
{{doc.get_formatted("posting_date")}}
doesn’t work in standard reply.
Hi!
Is it possible to format fields in standard reply the same way as in print format?
I’m getting dates in YYYY-MM-DD format. I would like it to be DD-MM-YYYY.
{{doc.get_formatted("posting_date")}}
doesn’t work in standard reply.
You can also use
{{ frappe.format_date(value) }}
or
{{ frappe.format(value, dict(fieldtype='Date')) }}
Thank you. It is working although I get different results from one or the other.
{{ frappe.format(value, dict(fieldtype='Date')) }}
worked for me.