title: Php Convert date time like "2017-01-10T18:00:00.000Z" to standard time
body: <p>I get a response from a other server with a date time like below,</p>
  
  <p><strong><code>"2017-01-10T18:00:00.000Z"</code></strong></p>
  
  <p>I want to convert this to standard date time like this, how do i do this ?</p>
  
  <p><strong><code>"2017-01-10 18:00:00"</code></strong></p>
  
  <p>is there a standard way of doing this ? or do i have rely on the regular expressions to the decode it ?</p>
  
  <p><strong><em>NOTE:</em></strong></p>
  
  <p>most people suggest i use below function</p>
  
  <pre><code>echo date("Y-m-d H:i:s", strtotime("2017-01-10T18:00:00.000Z")) . "\n";**
  </code></pre>
  
  <p><strong>but output i get is wrong from this function is "2017-01-11 05:00:00" not as "2017-01-11 18:00:00" why ? I want as i said "2017-01-10 18:00:00"</strong></p>