Change date format in field from mm-dd-yyyy to mmm dd, yyyy

I am using the {{ doc.posting_date }} to get the date of the invoice
I need to change the date to be display like this:
May 8, 2021
I searched but only found older requests for similar date changing, all of which return errors.

you can use e.g.

{{ frappe.utils.formatdate(doc.posting_date, "MMMM dd, yyyy") }}
1 Like

That works perfectly. Thanks!!