Formatting Date in Print Format

Hi there, I’m trying to insert a custom HTML code into the Print Format with Jinja, however the date that appears is in YYYY-MM-DD which I want to change it to DD-MM-YYYY.

I’ve googled around and tried .strftime(’%Y-%m-%d’) method but does not work.

Any one has any suggestion on how to do this?

1 Like

@Justin_Lu, use doc.get_formatted('fieldname')

4 Likes

Noted with thanks! It worked!