Date format in Print Format HTML

I’m trying to format the date in the last column of my table. I’ve seen a number of suggestions on the forum regarding the use of: frappe.utils.formatdate() and doc.get_formatted('fieldname'), however neither have worked for me.

Any suggestions on getting {{ }} in the format: DD/MM/YYYY would be very much appreciated.


{% if doc.lease_type!="Classic" %}
 <table class = "table table-sm">
            <th scope="col">Name</th>
            <th scope="col">Signature</th>
            <th scope="col">Date</th>
{% for lease_ack in doc.lease_ack %}
{% if %}
            <!--<th scope="row">{{ loop.index }}</th>-->
            <td class="align-middle">{{ lease_ack.customer_name }}</td>
            <td class="align-middle"><img src= {{ lease_ack.customer_signature }} height="50px" width="100px"></td>
            <td class="align-middle">{{ }}</td>
{% endif %}
{% endfor %}


{{frappe.utils.getdate("%d/%m/%Y") }}


{{frappe.utils.getdate("%d/%m/%Y") }}
1 Like

try get_formatted function:


or doc.get_formatted(“lease_ack”, doc)

This one worked! Thanks so much mate :raised_hands: