Comparing Date Without Year in PHP
It is not necessary to compare years. A date can consist simply of a month and a day:
<?php
$date1 = '12-01';
$date2 = '11-01';
var_dump($date1 > $date2);
?>
Write code that will compare the two dates below and output a message about which one is greater:
<?php
$date1 = '09-21';
$date2 = '09-23';
?>