Hi I want change date string -> Sat Oct 04 00:00:00 GMT+05:30 2008
-> into 'Y-m-d H:i:s'
format my code is as below :
$lsd = strtotime($vehicle->newDate);
$newDate = date('Y-m-d H:i:s',$lsd);
I am getting date like 1970-01-01 05:30:00
Why is so ?
I have gone through reference : http://php.net/manual/en/function.date.php
I have got date fromat representation labels for all except GMT+05:30
Sat Oct 04 00:00:00 GMT+05:30 2008
D M d H:i:s o
Instead of down-votes if that one label I get then I will be thankful then I will use http://php.net/manual/en/datetime.format.php,