1 2 3 4 5
<?php $enddt = '09-16-2013'; $enddt = str_replace('-', '/', $enddt); echo date('Y-m-d', strtotime($enddt));
1
2013-09-16