I thought this would be a doddle but i am finding it harder than i thought.
Every day, I want to check whether today is in between Christmas (25 Dec) and Epiphany (6 Jan) ie Christmastide.
The problem i'm having is to do with the years as the year changes in the middle of that period.
My basic if statement would be:
$this_year_today = date("d-M-Y");
$christmas = date('d-M-Y', strtotime("25 December ".$year));
$epiphany = date('d-M-Y', strtotime("6 January ".$year));
if(($this_year_today >= $christmas) && ($this_year_today < $epiphany)){
$season= "Christmastide";}
BUT if today is after christmas 2017 then epiphany date is 2018, but if today is before epiphany then christmas is 2016. Doing my head in a bit. WHat's the easiest way to do it. I tried using strtotime to say "last Christmas" but didnt seem to work...
Thx