SyntaxFix
Write A Post
Hire A Developer
Questions
$dateValue = '2012-01-05'; $yeararray = explode("-", $dateValue); echo "Year : ". $yeararray[0]; echo "Month : ". date( 'F', mktime(0, 0, 0, $yeararray[1]));
Usiong explode() this can be done.