I have a string that's currently 16/06/2012
and I'd like to convert it into 2012-06-16
.
How do I do this?
I have a string that's currently 16/06/2012
and I'd like to convert it into 2012-06-16
.
How do I do this?
date("Y-m-d", strtotime(implode("/", array_reverse(explode("/", "16/06/2012")))))