The two different databases i use are MySQL and DB2. As far as i have found i need to specify two different input codes formats..
..but how in Micheal Schumacher's name can i convert a date with this format..
Code: Select all
2003-12-31Moderator: General Moderators
Code: Select all
2003-12-31Code: Select all
$date = '2003-12-31';
$date_parts = explode('-', $date);Code: Select all
// yyyymmdd:
$date_db1 = implode('', $date_parts);
// mm/dd/yyy
$date_db2 = $date_parts[1].'/'.$date_parts[0].'/'.$date_parts[2];