$explode = explode("-",$myrow['funkydatefield']); $newDate = $explode[2]."-".$explode[0]."-".$explode[1];