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: Bill Peters <email@hidden>
- Date: Wed, 21 Feb 2001 10:54:50 -0700
>
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.
>
One easy optimization is that the fifth business day is always on the
seventh, unless the month starts on a Sunday or a Monday. For months
starting on Sunday, the fifth business day is the sixth, for Monday, it is
the fifth. If you want the script to run on the first business day _after_
the fifth business day, you could make a similar list of day values.
Also, you may want to consider January (New Year's day), July (Independence
Day), and September (Labor Day) and special case the code to not count
these holidays for US based customers.
Good Luck,
Bill Peters