I'm using twig and when I apply the filter
{{tutoriel.dateCreation | localizeddate('medium', 'none') }}
on my datetime, I have this error :
The filter "localizeddate" does not exist in Video2LearnAdministrationBundle:VisualisationFicheTutoriel:fiche_tutoriel.html.twig at line 167
Where I'm wrong ?
Thanks :)
i use a new twig filter format_date()
: https://twig.symfony.com/doc/2.x/filters/format_date.html
composer req twig/intl-extra
created_at|format_date('full')
created_at|format_date('full', '', null, 'gregorian', 'fr')
created_at|format_date('none', 'MMMM Y', null, 'gregorian', 'fr')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With