----- Original Message -----
From: "James Keeline"
> This works for me on PHP5 on a Linux system. Does it work for you?
>
> print date("Y-m-d", strtotime("second Sun Nov 2007"));
>
> Thanksgiving is on the third Thursday in November in the US so it would be:
>
> print date("Y-m-d", strtotime("third Thu Nov 2007"));
>
> Now, if we could get it to calculate lunar phases for determining Easter....
> The somewhat inaccurate calculation is the first Sunday following the first
> full moon after the vernal equinox (ie Mar 21). However, this is not always
> true and the full moon is actually looked up from old tables rather than the
> real full moon as observed astronomically.
Hi James,
It didn't work, and my server is Linux PHP Version 4.4.4 (I wrongly stated it
was PHP 4.3).
It doesn't like the 'second' and 'third', but works on simpler dates.
In the online manual, some say it's buggy in certain versions, so this could be
why.
Yep, Easter is a problem that I was thinking about, but I'll give that a miss
for now <big grin>.
I have manual dates in at the moment, and just thought it would be nice to
automate it for the coming years.
It's just for seasonal and religious dates that show common title images etc.
Thanks, Bob.