Guest Posted March 23, 2006 Posted March 23, 2006 Hello, I have a problem with the date of birth. In english we use mm/dd/yyyy but in hungarian we use yyyy/mm/dd I dont use 2 php files one for english and one for hungarian I just use the english one as hungarian. Where to change in this file to have the correct format. define('DATE_FORMAT_SHORT', '%Y/%m/%d'); // this is used for strftime() define('DATE_FORMAT_LONG', '%Y %B %d, %A'); // this is used for strftime() define('DATE_FORMAT', 'Y/m/d'); // 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 // text for date of birth example define('DOB_FORMAT_STRING', 'yyyy/mm/dd'); this is what i find regarding dates and they all look correct. Please help Gabor
Recommended Posts
Archived
This topic is now archived and is closed to further replies.