I try to convert an javascript date with php to Y-m-d but it's not working proper.
$to = 'Wed Jul 01 2020 15:09:00 GMT 0300 (Eastern European Summer Time)';
$to = substr($to, 0, strpos($to, '('));
$to = date('Y-m-d',strtotime($to));
echo $to;
result is:0300-07-04