I have a date in php in the format as Tue Jun 16 2015 05:30:00 GMT 0530 (India Standard Time)
I want to convert it in format mm-DD-YYYY
How can I do it ?
I have tried to use
$old_date_timestamp = strtotime($curddat);
echo $new_date = date('Y-m-d H:i:s', $old_date_timestamp);
but it is giving result
1970-01-01 00:00:00
While the value of $curddat
is Tue Jun 16 2015 05:30:00 GMT 0530 (India Standard Time)