Date format in custom print format

below image is the standard print format in which date is 18-08-2023

but when I am creating a custom print format the date format changed to 2023-08-18 as you can see in the below image

and I want the date to be in DD-MM-YYYY format while creating a custom html format

@falahtech try this :

you can also using other strf code

1 Like

Hi @falahtech,

You can easily get dates using formatted using Jinja.

{{ doc.get_formatted('posting_date') }}

Thank You!

1 Like

hey, @bahaou @NCP thanks your answers helped solving my issue!

1 Like