I want to convert the following date to Y-m-d but it does not work correctly
$date='Thu Jul 01 2021 15:22:00 GMT 0300 (Eastern European Summer Time)';
$from=date('Y-m-d',strtotime($date));
echo $from;
displays 1970-01-01
I want to convert the following date to Y-m-d but it does not work correctly
$date='Thu Jul 01 2021 15:22:00 GMT 0300 (Eastern European Summer Time)';
$from=date('Y-m-d',strtotime($date));
echo $from;
displays 1970-01-01