Trying to write an IF statement to show Christmas opening hours, using the formula that if todays date is between 1st December and 5th January, otherwise show the normal times. But all I'm getting is the normal times.
$xmasStart = date('m-d', strtotime('11-01'));
$xmasEnd = date('m-d', strtotime('01-05'));
if((date('m-d') > $xmasStart) && (date('m-d') < $xmasEnd)) {
echo 'Christmas Opening Hours';
} else {
echo '<p class="marginbottom0">Monday to Friday: 8am - 6pm<br><small>Saturday & Sunday: Appointment only</small></p>';
}