date format in the News module

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
VoViaN

date format in the News module

Post by VoViaN »

How van I  change date format from MM/DD/YY to DD/MM/YY in the News module? I use cmsms 1.0b3. Thank you!
cyberman

Re: date format in the News module

Post by cyberman »

News module has a parameter to format the date - please look at modules help.

For the parameters look here

http://de2.php.net/manual/en/function.date.php
djkirstyjay
Forum Members
Forum Members
Posts: 206
Joined: Tue Oct 25, 2005 4:50 pm

Re: date format in the News module

Post by djkirstyjay »

Hi, I want to know this too... where can I find the parameter in the news module? I've looked through the code and can't see it. Can you tell me what line it's on?
waldek

Re: date format in the News module

Post by waldek »

Hi,

I've problem with date format:

I've set: {cms_module module='news' number='5' dateformat="%d-%m-%Y"}

so, the date format is: 09-06-2006

It works for News Summary, but in News Detail - I've still have the default format: 08/21/2006

Why doesn't it work for both?

(CMSMS 0.13 News 2.0.3)
Last edited by waldek on Mon Aug 21, 2006 3:31 pm, edited 1 time in total.
contented
Forum Members
Forum Members
Posts: 11
Joined: Wed Mar 28, 2007 6:13 pm
Location: Wales, UK

Re: date format in the News module

Post by contented »

A bit late, but still relevant.
The trick is to put the formatting by going to Content >> News. Then click on the options tab and enter the following code into the box for the date format

Code: Select all

%A %e %B %Y
That should give you day date month year every time.

Cheers,

C

:)
Locked

Return to “CMSMS Core”