I really like the strtotime() function, but the user manual doesn\'t give a complete description of the supported date formats. strtotime(\'dd/mm/YYYY\')<
strtotime()
strtotime(\'dd/mm/YYYY\')<
The simplest solution is this:
$date = '07/28/2010'; $newdate = date('Y-m-d', strtotime($date));