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

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -