I am pulling a date from a database and it is in the format 2017-12-07. That is how I was displaying the date, however, I would like to display is like Dec 7, 17.
What I tried.
echo "<td>" . date_format($row['returndate'],'M d, y') . "</td>";
My results end up empty. I have successfully changed the date format with in the MYSQLI line, however, I was wanting to do it with PHP.
UPDATE
I apologize, it seems I over looked something simple. Below fixed it.
date('M d, y', strtotime($row['returndate']))
I guess you have to do strtotime before date.