how to get the month of a date value in php code example Example: php grab month from date $month = date("m",strtotime($mydate));