how to detect month php code example Example: how to get match date and month in php date('m',strtotime('2018-06-30' )) == date('m');