Search code examples
elisporg-mode

Repeating an item on the third Wednesday of every second month


I'm trying to make an org-mode entry repeat on the third Wednesday of every second month.

So far, I have succeeded in creating an entry that repeats every Wednesday of every second month:

SCHEDULED: <%%(and (= 3 (calendar-day-of-week date)) (oddp (car date)))%>

Is there a function I'm missing (doesn't seem to be anything in calendar.el) that will tell me which Wednesday the date is?


Solution

  • Thanks @brittUWaterloo for the suggestion; you're right, and the correct solution is:

    SCHEDULED: <%%(and (diary-float t 3 3) (oddp (car date)))%>