DateTime formate in php
<p>I have date stored in database in this format frankly i dont know the timezone of this format</p>

<blockquote>
  <p>2016-05-26T11:35:00.000Z</p>
</blockquote>

<p>but i want to display date in this format </p>

<blockquote>
  <p>May 27, 2016 12:00 am</p>
</blockquote>

<p>Here is code</p>

<pre><code>$date = substr($query_result-&gt;post_date, 0,10);
$date = date_create($date);
date_format($date,"F j, Y g:i a");
</code></pre>

<p>It shows date correctly but it always shows 12:00 am with date.
Like if date is </p>

<blockquote>
  <p>2016-05-26T11:35:00.000Z</p>
</blockquote>

<p>then it should display </p>

<blockquote>
  <p>May 26, 2016 11:35 am/pm</p>
</blockquote>

<p>Thanks in advance</p>