Reputation:
I am using twig in php and want to display the full name of the current day in the date how can i do that. This is my code
{{ "now"|date("d, F Y ","America/Denver") }}
Upvotes: 4
Views: 14842
Reputation: 3362
This prints the current day:
{{ "now"|date('l') }}
See also (for other format string components): http://php.net/manual/en/function.date.php
Upvotes: 12