php - TWIG Date Time locale language -
in twig file
{{ comments.created|date('l, f j, y') }} thursday, july 25, 2013
displays default locale english. how can display in other language format. german, turkish etc.
simply set needed format
{{ comments.created|date('d.m.y') }}
Comments
Post a Comment