I want to convert user-submitted date format (mm/dd/yyyy) to a MySQL date format (YYYY-mm-dd). Submission is via a simple PHP form direc tto MySQL database.
+7
A:
$mysql_date = date('Y-m-d H:i:s', strtotime($user_date));
Paolo Bergantino
2008-12-10 01:30:43