Change date format to uk(united kingdom)

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
olumide
Forum Members
Forum Members
Posts: 108
Joined: Mon Mar 21, 2011 10:26 am

Change date format to uk(united kingdom)

Post by olumide »

Hello pls can anyone help with this i am trying to change my date format to uk has most of the modules have the us date format. so what will i have to do to this to change it to the uk format of day-month-year ({$entry->postdate|date_format:"%D"})
scooper
Forum Members
Forum Members
Posts: 242
Joined: Fri Dec 09, 2005 12:36 pm

Re: Change date format to uk(united kingdom)

Post by scooper »

You can set a default date fomat in the Site Admin->Global Settings page. There's a field Date Format String:

We'd normally use something like %d %B %Y but you can use whatever format you need. The strftime format is explained here:
http://php.net/manual/en/function.strftime.php

Hopefully all your modules will then pick up this date format. I'm sure the News and other core modules will.
It may be that some not so well coded modules might not respect that date format but give it a go first and if it does it for you.
Locked

Return to “[locked] Installation, Setup and Upgrade”