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: Emmanuel <email@hidden>
- Date: Wed, 21 Feb 2001 16:41:12 -0500
At 12:07 -0500 21/02/01, 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.
At first sight, your code seems all right - maybe one could write one a
little more clever and much more unreadable.
The only point is, it is not portable and, even worse (I'm afraid), it
depends on your "Date & Time" settings: why do you use strings?
Couldn't you write:
---------------
set businessDayList to {Monday, Tuesday, etc.}
---------------
and
---------------
set dayOfToday to weekday of todayDate
---------------
?
(I have tested nothing)
Emmanuel