how to get month from date string in ph code example Example: php grab month from date $month = date("m",strtotime($mydate));