Formatting date in a php smarty template

The date string can be formatted in a smarty template like this:

$payment.creation_date|date_format:"%d-%m-%Y"

where creation_date is an element of $payment array.

Leave a Reply

Your email address will not be published.