pmaonline Posted January 24, 2006 Posted January 24, 2006 Hi, i need to change the dob from 03/22/2000 to 22/03/2000 I mean from month/day/year to day/month/year Thanks for you help
♥Vger Posted January 25, 2006 Posted January 25, 2006 Look at the top of either the includes/languages/german.php or spanish.php file and you'll see these settings - which you need to use in portugese.php 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 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); } } And similar changes in admin/includes/languages/portugese.php 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('PHP_DATE_TIME_FORMAT', 'd/m/Y H:i:s'); // 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 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); } } Vger
jorgrds Posted January 25, 2006 Posted January 25, 2006 I still have a problem after changing these files. When I create a new account, the user has to type mm/dd/yyyy , instead of dd/mm/yyy but after creating the account, when I go to my account informartion I see the date correctly dd/mm/yyyy. What should I do? Tks
Recommended Posts
Archived
This topic is now archived and is closed to further replies.