known :
$beginDate = "2018-07";
$endDate = "2018-11";
how to implement :
in codefor example, this month is November, then
2018-11 this month
2018-10 exceeds January
2018-09 exceeds February
2018-08 exceeds March
2018-07 exceeds April
the time after July defaults to "beyond April"