discovering event dates
Date: 10/26/06
(PHP Community) Keywords: no keywords
we have events that occur every tuesday and the first wednesday of every month. is there a way i can determine what the dates for these events will be? this is two independent problems:
determine the date for the next tuesday that will occur.
determine the date of the next 1st wednesday (current or next month) that will occur.
i've been messing around with various date related functions, but i guess i'm having trouble figuring the math involved?
Source: http://community.livejournal.com/php/505672.html