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));
You are just near to Output. In date format function use F for Full month Display.
$date = "12-12-2015"; echo date("F d, Y", strtotime($date));
Try this:
Reference Link:http://php.net/manual/en/function.date.php