user3928077
user3928077

Reputation:

how to display day name in twig date in symfony

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

Answers (1)

Fred
Fred

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

Related Questions