I have a small events script I wrote to suite my client. The script work perfect but I cannot get the date to display, example:
25 August 2015
My question comes not for the lack of searching Stack Overflow and other resources.
The date format straight from MySQL:
echo $row['date_start']; //2015-08-26
How I want it to be:
25 August 2015
And my 3 attempts aren't working as expected. ($DateStartString
I get from row $DateStartString = $row['date_start'];
)
echo date_format($row['date_start'],"M/d/YY");
echo date_format($DateStartString, 'm F Y');
echo $DateStartString->format('m F Y');