Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Changing the birthday date format for costumers in admin / edit account


Recommended Posts

Hi, I'm also interested in the answer to this. I have managed to change the display format, it is in languages/english.php, but the validation routines are still expecting mm/dd/yyyy.


If you manage to find the answer could you please post it to this thread?





Link to comment
Share on other sites

The includes/languages/spanish.php or german.php and the admin/includes/languages/spanish.php or german.php are already set up to use the dd/mm/yyyy format. It's only the english.php which uses the american system. So, take these pieces of code and copy into your english.php files, replacing what's there:



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 strftime()

// Return date in raw format
// $date should be in format mm/dd/yyyy
// raw date is in format YYYYMMDD, or DDMMYYYY
function tep_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);


All you need to do then is to edit the text which tells you to enter the data in mm/dd/yyyy format - which is lower down in the english.php files.



Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...