I've created a mail template (module email_template), I load it before sending the mail (though the email.compose.message wizard) and it's working perfect.
However, in the template I'm showing a field of type date, and it's showing up with the format "%Y-%m-%d %H:%M". The problem is that that's not the date format of my language, I need "%d-%m-%Y %H:%M".
I've tried with ${my_date|dateformat("%d-%m-%Y %H:%M")}, but I've gotten an error. How can I achieve the new format?
Thank you in advance!