[Solved] Issue with date format in Order Printer app

Bert_Caryn1
Tourist
3 0 1

Hello,

I am stuck with rendering the invoice date with the format dd/mm/yyyy

Currently the output is: Invoice date: 2013-10-19 16:20:56 UTC

The required output is: Invoice date: 19/10/2013

The liquid code I am using: <b>Invoice date</b>: {{ date | date: %d %m %Y }}<br/>

Does anyone know what I am doing wrong?

Regards,

Bert

Replies 2 (2)
Bert_Caryn1
Tourist
3 0 1

I found the solution myself: I forgot to put quotes around the formatting pattern

This code did it {{ date | date: "%d/%m/%Y" }}

Topic closed

jamievickery
New Member
8 0 0

8 years later it's still working. Thanks!