PHP - Convert string to date in
<p>I am getting a string like <strong>Wed Sep 28 2016 01:00:00 GMT+0500 (PKT)</strong> and I need to convert it to <strong>2016-09-28 01:00:00</strong> 
I have tried this</p>

<pre><code>$startTime   = strtotime($updatedData['start']);
echo $time = date("Y-m-d H:i:s",$startTime);
</code></pre>

<p>but it returns me <strong>2016-09-27 20:00:00</strong></p>