How do I covert Date back in PHP?

Any please help me to covert this back to orignal date formats, have tried to use strtotime($startDate) and its giving a very wrong answer!

$startDate = '2012-11-21T20:16:14+02:00';
$endDate = '2012-11-27T23:19:14+02:00';

$date = 2012-11-26;
$time = 20:16:14;
$duration = $endDate - $startDate; // 01:30:00

Leave a Reply

*

Hire Me
Follow Me!
Search
Most Popular Articles & Pages
Because your vote is Important
Sorry, there are no polls available at the moment.
Categories