Reputation: 22193
I'm trying to apply the german format of a date to a Magento email. I can get the invoice date with
{{var invoice.created_at}}
but that gives me "2010-05-21 15:46:24". I would like to have 21.05.2010 and PHP doesn't work in the templates.
I'm totally new to Magento so please be patient :-P
Greetz Spanky
Upvotes: 3
Views: 6023
Reputation: 2960
You could also call the order.getCreatedAtStoreDate()
-function:
Order date: {{var order.getCreatedAtStoreDate()}}
Upvotes: 0
Reputation: 23255
I think you will have to override the method that sends the email to pass the date as a variable to the template (using the fifth argument of the sendTransactional() method).
Upvotes: 1