Top menu

How to use the Intl Extension Twig for date

First you should install the php5-intl :

Then add the code below in your “app/config/config.yml” file :

Finaly in you twig file you can use the localizeddate filter to format dates into a localized string representating the date :

 

No comments yet.

Leave a Reply