Re: Week of year - odd/even week
Re: Week of year - odd/even week
- Subject: Re: Week of year - odd/even week
- From: Shane Stanley <email@hidden>
- Date: Fri, 01 Feb 2002 08:45:19 +1100
On 1/2/02 7:58 AM +1000, martin schiller, email@hidden, wrote:
>
Can anyone help me with some pointers or a routine to determine the week
>
of the year? I'm trying to set a script to send me a reminder to put out
>
the yard waste container on alternate weeks.
Play with something like this:
set x to current date
copy x to y
set month of y to January
set day of y to 1
((x - y) / weeks) div 1
--
Shane Stanley, email@hidden