I'm sure this is not the best way to accomplish this but here you go.
// explode my date into an array to separate it into variables.
$mydate = explode('-',$rec['showdate']);
// separate out the components assuming format is YYYY-MM-DD
$y = $mydate[0]; // year is first
$m = $mydate[1]; // month is second
$d = $mydate[2]; // day is last
$month_name = date("F",mktime(0,0,0,$m,1,$y)); // convert to month name
$day = date("j",mktime(0,0,0,$m,$d,$y)); // remove leading zeros from the day if any
$cardinal = date("S",mktime(0,0,0,$m,$d,$y)); //get the cardinals for the day
echo "$month_name $day$cardinal, $y"; // print the date
Again, I don't know the most efficient way but this works for me.
Hope it helps.
Meekos