Can you specify an RRULE for the following scenario?
Recurring monthly on the first day of each month. Except, if it falls on Sunday, then recurs on the following day (Monday the 2nd of the month). Except, if it falls on Friday, then recurs on the previous day (Friday the last of previous month).
This is just an exercise to see what's possible and how to work around various issues.
I tried setting this up with 3 separate RRULE:
RRULE:FREQ=MONTHLY;BYMONTHDAY=1;BYDAY=MO,TU,WE,TH,FR
RRULE:FREQ=MONTHLY;BYMONTHDAY=2;BYDAY=MO
RRULE:FREQ=MONTHLY;BYSETPOS=-1;BYDAY=FR
The first rule does what I want - the first day of the month only if it falls on weekday. The second rule does what I want - if the first is on Sunday, then this rule picks to following Monday, which is Monday the 2nd of the month. The third rule is the issue. This picks the last Friday of each month. But what I wanted was the last day of the month only if it falls on Friday. Or, said differently, the last Friday of the month only if it is the last day of the month. This is a bit sticky because you can't use BYMONTHDAY since different month has different number of days, and I don't think BYMONTHDAY=-1 works as expected. Can someone come up with the correct rule for "last day of the month only if it is Friday".