Does anyone know how to call only the 1st and third thrusday of the month? I'm braindead.
You can always cycle through the month using date("l", mktime(0,0,0, month, day, year); and to see if it matches Thursday...
Once you have the first Thursday, you know that the second one is definitely 14 days later. So you should aim at finding that. [MAN]strtotime[/MAN] is a function which is very good creating timestamps from strings. You can feed it strings like 'last thursday' and it will calculate the timestamp for the previous thursday. You'll then need to check if last thursday was actually in the previous month, and recalculate.
Actually, strtotime() can find the first Thursday or third Thursday of the current month directly.
Ah well even easier then 🙂