I have a date value from database as 12-12-2015 I tried the below code
12-12-2015
$date = \"12-12-2015\"; echo date(\"M d, Y\", strtotime($date)); <
$date = \"12-12-2015\"; echo date(\"M d, Y\", strtotime($date));
Try this:
$date = "12-12-2015"; echo date("F d, Y", strtotime($date));
Reference Link:http://php.net/manual/en/function.date.php