Search for 'doomsday algorithm' on google. Once you grok it, you should be 
able to figure out the last friday quite easily.


On Sunday 26 October 2003 11:37 am, OrangeHairedBoy wrote:
> Hi all,
>
> I'm trying to write a script to get the next last friday of the month and I
> am failing miserably. It keeps giving me October 10th. So, I scrapped it.
>
> Basically, I just want to show what the last friday of the month is, and if
> that date has already passed, show the last friday of the next month.
>
> How can I do that?

-- 
Evan Nemerson
[EMAIL PROTECTED]

--
"If you would be a real seeker after truth, you must at least once in your 
life doubt, as far as possible, all things."

-Rene Descartes

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

Reply via email to