This is one of the most often asked questions I receive from new UK Zenners.
First of all backup /includes/languages/english.php then open it using your editor of choice.
Near the top of the file, you will find this section of code.
PHP Code:
define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime()
define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
define('DATE_FORMAT', 'm/d/Y'); // this is used for date()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');
////
// Return date in raw format
// $date should be in format mm/dd/yyyy
// raw date is in format YYYYMMDD, or DDMMYYYY
if (!function_exists('zen_date_raw')) {
function zen_date_raw($date, $reverse = false) {
if ($reverse) {
return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);
} else {
return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);
}
}
}
You need to change it to this.
PHP Code:
define('DATE_FORMAT_SHORT', '%d/%m/%Y'); // this is used for strftime()
define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
define('DATE_FORMAT', 'd/m/Y'); // this is used for date()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');
////
// Return date in raw format
// $date should be in format mm/dd/yyyy
// raw date is in format YYYYMMDD, or DDMMYYYY
if (!function_exists('zen_date_raw')) {
function zen_date_raw($date, $reverse = false) {
if ($reverse) {
return substr($date, 0, 2) . substr($date, 3, 2) . substr($date, 6, 4);
} else {
return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2);
}
}
}
Further down the file around line 72, you will find this line.
PHP Code:
define('DOB_FORMAT_STRING', 'mm/dd/yyyy');
Change it to
PHP Code:
define('DOB_FORMAT_STRING', 'dd/mm/yyyy');
You then need to backup and open
/admin/includes/languages/english.php
and do the same as above, the layout of this file is slightly different but you should be able to work out where to change the code.
Both these files are well worth studying carefully to see if there's any text you need to change to suite your site, one common one is to change "lb" to "Kg", I'm sure you'll find many others such as "USD" to "GBP".