Multilingual Dates where date format varies I have a multilingual site, and I want my dates formatted like:


English site: July 13, 2014
Italian site: 13 lulgio 2014


So the month name is translated, and the order of the elements changes as well.
Craft has extended Twig's date filter so that it translates the output (no documentation for this, but the code is in craft/app/etc/templating/twigextensions/CraftTwigExtension.php around line 152). So {{now|date('F j, Y')}} will give July 13, 2014 on the English site, and luglio 13, 2014 on the Italian site. Which is half way there. In order to get the Italian date to use the Italian format (j F Y), we need a translation for the format string. Add this to craft/translations/it.php. (For more info see Static Translations):

'F j, Y' =&gt; 'j F Y',


To output the translated date:

{{now|date('F j, Y'|t)}}