PHP Grab miesiąca od daty
$month = date("m",strtotime($mydate));
Carnivorous Flamingo
$month = date("m",strtotime($mydate));
date('m',strtotime('2018-06-30' )) == date('m');