US Date system - how can I change to UK?

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.
Post Reply
scotch33
Dev Team Member
Dev Team Member
Posts: 285
Joined: Tue Feb 14, 2006 9:56 pm

US Date system - how can I change to UK?

Post by scotch33 »

Hi,

Oh those pesky Americans! Does anyone know whow I can go about changing the MM/DD/YYYY US format to a good old DD/MM/YYYY tea and cake consuming, queen loving, UK date format?

Thanks!

Scotch
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: US Date system - how can I change to UK?

Post by calguy1000 »

scotch?  Date format where, in the news module?
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
scotch33
Dev Team Member
Dev Team Member
Posts: 285
Joined: Tue Feb 14, 2006 9:56 pm

Re: US Date system - how can I change to UK?

Post by scotch33 »

Hi mate,

Yeah - the one in the news / plus the calendar module
cyberman

Re: US Date system - how can I change to UK?

Post by cyberman »

Please read the module help - there's a parameter named dateformat. It should helps ...
cdstg

Re: US Date system - how can I change to UK?

Post by cdstg »

Hi in the news module you can pass it

{cms_module module="news" number="5" category="beer" dateformat="%d %b , %Y"}
that would be day month year
or even beter %d %B %Y that would be like 9 June 2006

is the calander the rob@akrabat.com one ? as you may have to edit the templates for that
scotch33
Dev Team Member
Dev Team Member
Posts: 285
Joined: Tue Feb 14, 2006 9:56 pm

Re: US Date system - how can I change to UK?

Post by scotch33 »

Thanks guys!
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm

Re: US Date system - how can I change to UK?

Post by Russ »

You might also want to consider ISO standard universal date formats e.g. yyyy/mm/dd ? Makes sense on sorting and you can allways include a more readable 16th June 2006?

Just an idea...

Russ
Post Reply

Return to “CMSMS Core”