I want to format the date I'm retrieving from the database to another format but can't seem able to do it, I did a search and found a possiblity but it dosen't seem to work for me.
I'm using MySQL database and PHP 4
The current database date is in yyyy-mm-dd format and I either want to rearrange it to dd-mm-yyyy or into 'ddth January, yyyy'
i orignally tried this
$query = "SELECT column1, DATE_FORMAT(date, '%M %e, %Y') AS date FROM table WHERE id='$id'";