For a blog i'm putting together I use the code below to format the date.
I would like to ad 'st', 'rd', 'nd' though after the number. So currently where the date displays as 1 january 2012 I want it to be 1st January 2012.
Any ideas how to do this?
$formattedDate = date('j M Y', strtotime($row_Recordset1['eventdate']));