tags:

views:

2406

answers:

1

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