Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Set Date format for blog posts to standard American mm/dd/yyyy

solved

Solved by Aaron Dalton View solution

Started by Glenn 8 years ago · 5 replies · 2550 views
8 years ago

I have managed to get the dates of my blog posts to display like this:

TXT
27th Nov 2015 

But I would rather have this:

TXT
Nov 27, 2015

I've searched through the myriad blueprint and yaml and css and scss files but I can't find where this would be controlled. Help!

8 years ago

Adjusted the long and short date formats to 'M jS Y' in /user/config/system.yaml - works like a charm. Thanks!

8 years ago

@Perlkonig How can date format be set per supported language?

8 years ago

Thanks @Perlkonig

The filter localizeddate('long', 'short', html_lang) available form the Intl twig extension does the job to get a localized datetime format.

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 52 8 hours ago
Support · by Anna, 3 days ago
2 59 11 hours ago
Support · by Justin Young, 12 hours ago
1 30 12 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 56 5 days ago