Possible Duplicate:
How to check if a date is in a given range?
I need to show some info on my site between these upcoming days:
12/28 to 1/1
Here's my current way of doing it but it looks pretty ugly:
$today = date('m/d');
$days = array('12/28', '12/29', '12/30', '12/31', '1/1');
if(in_array($today, $days)) {
// show stuff
}
What's a cleaner way?