1. set date = 1
2. get day of 1st of month
3. if day != tuesday, set date = 10-day_num  (assuming Sun = 0, Mon = 1,
etc)
4. add 14 to date
5. now you have your date

There's most likely a better way of doing it though

-----Original Message-----
From: Ed Lazor [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 29, 2002 10:49 AM
To: [EMAIL PROTECTED]
Subject: [PHP] easy date question?


How can I find out the date of the 3rd Tuesday of any given month?

Thanks,

-Ed


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to