get year month day php code example
Example 1: php grab year from date
$year = date("y",strtotime($mydate));
Example 2: get month days in php
echo cal_days_in_month(CAL_GREGORIAN, 8, 2009);
$year = date("y",strtotime($mydate));
echo cal_days_in_month(CAL_GREGORIAN, 8, 2009);