i m tried hard to get the date in the date formate after subtracting two dates but not getting the correct result ,and the result is 1970-01-07 05:00:00 but i require the result 2013-02-07 12:02:00
$start_date =strtotime('2013-02-13 12:02:00');
$end_date =strtotime('2013-02-20 12:02:00');
$total = ($start_date - $end_date);
echo date("Y-m-d H:i:s",$total);