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: Jason Bourque <email@hidden>
- Date: Wed, 21 Feb 2001 19:49:58 -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
Well, I don't use date calculations much in my scripting. But thank you for
the imput.
Jason Bourque