symfony - Twig: Translate DateFormat-> Day -


i have in twig-template

{{ returndate|date("l, d.m.y") }} 

the ouput friday, 08.05.2015. possible translate dayname -> "l"? {{ returndate|date("l, d.m.y")|trans }}

i had same problem minutes ago! pushed simple, quick & dirty solution:

{{ returndate | date("l") | trans }}, {{ returndate | date("d.m.y") }} 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -