I am trying to convert a date from yyyy-mm-dd to dd-mm-yyyy (but not in SQL); however I don\'t know how the date function requires a timestamp, and
yyyy-mm-dd
dd-mm-yyyy
Also another obscure possibility:
$oldDate = '2010-03-20' $arr = explode('-', $oldDate); $newDate = $arr[2].'-'.$arr[1].'-'.$arr[0];
I don't know if I would use it but still :)