How to get the month from the date php code example Example: php grab month from date $month = date("m",strtotime($mydate));