News Module - Date format

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
zocha0701
New Member
New Member
Posts: 3
Joined: Mon Jun 05, 2017 12:19 pm

News Module - Date format

Post by zocha0701 »

Hi,

how can I change format of date in News Module. That format is given via cms_date_format ?

I would like that months will be numbers not words with only 3 firts letters or that months will be whole word written

Now it is: http://folbluty.org/folblutyCMS/index.p ... ktualnosci

I give in config.php
$config['cms_date_format'] = '%e %m %Y';
$config['date'] = '%e %m %Y';

but it isn't working :-\

Thanks in advance
scooper
Forum Members
Forum Members
Posts: 242
Joined: Fri Dec 09, 2005 12:36 pm
Location: Marlow, UK

Re: News Module - Date format

Post by scooper »

You can change the default date format throughout the CMS by going to
Site Admin -> Settings - Global Settings and then updating the Date format string field under the General Settings tab.

If you want to just change the date format in News then you can update your template to use the smarty date_format modifier

Code: Select all

{$entry->postdate|date_format:"%e %m %Y"}
zocha0701
New Member
New Member
Posts: 3
Joined: Mon Jun 05, 2017 12:19 pm

Re: News Module - Date format

Post by zocha0701 »

Thanks a lot scooper :)
it's working perfectly ;D
Post Reply

Return to “The Lounge”