Is there a function that uses the date() format to interpret a string?
date()
echo date(\'s-i-H d:m:Y\', 1304591364); // 34-29-17 05:05:2011 // Does t
Try this to reverse:
$x = '2013-09-15';
$x = implode('-', array_reverse(explode('-', $x)));
// now $x = '15-09-2013'