Possible Duplicate:
PHP: convert date format yyyy-mm-dd => dd-mm-yyyy [NOT IN SQL]
Hope everyone is having a great holiday.
I have a date in this format: 23-12-2011
and would like to reverse it into US format 2011-12-23
.
Does anyone know how I can do this in PHP? Is there any function for breaking strings up?