I am storing a date formatted as below into a mysql datetime data source.
$intdate = date("Y-m-d h:I:s");
the dates appear as 2001-11-06 04:20:53 in the database.
I print the date out through the sql query like so:
SELECT this, that, theotherthing, DATE_FORMAT(datefield, '%W, %b %e, %Y %H:%i %p') AS datePosted FROM table WHERE blah blah blah...
For some reason the dates are printing out as AM instead of PM.
Any ideas are appreciated