Hi, im trying to transform a string to make it a date
$date1 = '$month/$day/$year'; //in jS value form type="number"
$date2 = strtotime($date1);
$date3 = date('Y-m-d',$date2);
The problem is that when I SET date = $date3 the database saves 0000-00-00. what am I doing wrong??