title: Sun Nov 01 2020 00:00:00 GMT+0530 (India Standard Time) to Y-m-d in PHP
body: <p>I am using below code for converting whole data in Y-m-d format in PHP</p>
  <pre><code>&lt;?php 
  $from_date =&quot;Sun Nov 01 2020 00:00:00 GMT+0530 (India Standard Time)&quot;;
  $from_date = trim(preg_replace('/\s*\([^)]*\)/', '', $from_date)); // Sun Nov 01 2020 00:00:00 GMT+0530
  $from_date = date('Y-m-d', strtotime($from_date)); //actual output-2020-10-31 expected output-2020-11-01  
  ?&gt;
  </code></pre>
  <p>I want date as 2020-11-01 but its returning 2020-10-31</p>