Re: Has the 5th business day of the month passed???
Re: Has the 5th business day of the month passed???
- Subject: Re: Has the 5th business day of the month passed???
- From: Carl West <email@hidden>
- Date: Wed, 21 Feb 2001 14:07:29 -0500
- Organization: VPG Integrated Media
"Bourque, Jason" wrote:
>
>
Hello,
>
>
I need to confirm that the fifth business day of the month has passed before
>
continueing on with a script.
>
I have done it successfully but I ask is there a better way.
Hmmm...
Thinking out loud here:
The first business day on which 5 business days of the month have passed
would be the 8th, 9th or 10th.
If the month starts on : you want:
Saturday Monday the 10th
Sunday Monday the 9th
Monday-Friday the 8th
The first _day_ on which 5 business days of the month have passed would
be two days sooner.
The only thing that screws this up is months with early holidays, like
July in the US.
A small lookup table handles it. Another small one handles holidays.
--
Carl West email@hidden
617.262.8830 x246
I have no superfluous leisure; my stay must be
stolen out of other affairs; but I will attend you awhile.
- Isabella, Measure for Measure, Act 3 Scene 1