php month number from date code example
Example 1: php convert number to month
$monthNum = 3;
$monthName = date('F', mktime(0, 0, 0, $monthNum, 10)); // March
Example 2: datetime get month php
$dateTime = new DateTime();
$month = $dateTime->format('m');
Example 3: get month days in php
echo cal_days_in_month(CAL_GREGORIAN, 8, 2009);
Example 4: show date php
check here link: http://www.eltcalendar.com/stuff/datemysqlphp.html