convert datetime from mysql to human readable string
<p>I have a datetime that I get from a mysql table and I would like to display it as a string.It looks like the following and I would like it to look like July 14th 2016 at 5:00 PM. </p>

<pre><code>2016-07-14 17:00:00
</code></pre>

<p>I tried formatting like the following, but it didn't work. How do i get it how I want? </p>

<pre><code>    date_format($date, 'g:ia \o\n l jS F Y');
</code></pre>