Mike,
Thanks for the help on the holidays, I think I will manage that
myself. I did more testing on the weekday rule you gave me and it
works great except when my date is on the 1st and 2nd of the month.
So if I would like to create a calendar entry for the 1st day of
every month for 4 occurences but NOT on weekends I used, but the dates
are not correct.
RRULE:FREQ=MONTHLY;INTERVAL=1;BYMONTHDAY=30,31,1;BYDAY=MO,TU,WE,TH,FR;COUNT=4;BYSETPOS=-1
mydate: 2010-04-01 Thu - Correct
mydate: 2010-04-30 Fri - Correct
mydate: 2010-05-31 Mon - Incorrect should be 2010-06-01 Tue
mydate: 2010-06-30 Wed - Incorrect should be 2010-07-01 Thu
Thanks for your help.
On Apr 28, 1:47 pm, Mike Samuel <
mikesam...@gmail.com> wrote:
> Some holidays are easy:
> New Year's: RRULE:FREQ=YEARLY;BYMONTH=1;BYMONTHDAY=1
> some are harder: US election day is the Tuesday after the first Monday
> of November in even-numbered years which can be represented as
> RRULE:FREQ=YEARLY;INTERVAL=2;BYDAY=TU;BYMONTHDAY=2,3,4,5,6,7,8
> but require some thinking to puzzle out; and some are quite difficult,
> e.g. Easter in some traditions is the first Sunday after the full
> moon.
> Like Easter, anything based on lunar calendars (most Arabic, Chinese,
> and Hebrew holidays) or Egyptian/Ethiopian/Coptic calendars just don't
> fit into the Gregorian calendar.
>
> cheers,
> mike
>
> 2010/4/28 Steve <
steve_nor...@verizon.net>:
> >> For more options, visit this group athttp://
groups.google.com/group/google-rfc-2445?hl=en.-Hide quoted text -