I used explode function to get year, month, day. How to get monthname in php. Example 27 December, 2004
$month_name = date('F', strtotime($year . '-' . $month . '-' . $day));
Edit: I see that this is a double post, and that you haven't responded to the help offered in either one.
I used substr instead explode. Thanks now it is working. thank you for ur help.