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.
2016-07-14 17:00:00
I tried formatting like the following, but it didn't work. How do i get it how I want?
date_format($date, 'g:ia \o
l jS F Y');