I have user defined date ranges. A date range might be from November 8 - March 26 for example. I need to determine if a given date (without the year) is between one of these ranges. I don't want to include the year because the user defined date ranges are recursive for each year.
My problems is that I don't know how to handle the loop-back between December 31 and Jan 1. I'm guessing that a PHP DatePeriod object would be the way to go but how can I exclude the year from it? If I have a date range from December 10 to February 15 how can I determine if Jan 11 is in that range without specifying the year?