I have a date (\"mm/dd/yyyy\") and I want to convert it to a MySQL DATE data type (like yyyy-mm-dd)
How do I do it with PHP?
$date = '12/25/2011'; $parts = explode('/', $date); $sql_date = $parts[2] . '-' . $parts[0] . '-' . $parts[1];