Code and docs
rrule.js
This is a demo and test app for rrule.js, a JavaScript library for working with recurrence rules for calendar dates.
rule =
rule.origOptions
rule.toString()
rule.toText()
rule.all()
freq
dtstart
new Date
tzid
UTC
until
Date
count
interval
RRule.YEARLY
2
RRule.HOURLY
1
wkst
RRule.MO
RRule.TU
RRule.WE
byweekday
0 == RRule.MO
RRule.MONTHLY
BYMONTH
RRule.FR.clone(+1)
BYDAY
bymonth
bysetpos
-1
RRule.TH
RRule.FR
bymonthday
byyearday
byweekno
byhour
byminute
bysecond
byeaster
RRULE
Enter an RRULE as per iCalendar RFC.
Examples:
FREQ=WEEKLY;BYDAY=MO,WE
FREQ=MONTHLY;BYMONTHDAY=10,15;COUNT=20
FREQ=DAILY;INTERVAL=3;COUNT=10
FREQ=MONTHLY;BYDAY=-2FR;COUNT=7
Every weekday
Every 2 weeks on Tuesday
Every week on Monday, Wednesday
Every month on the 2nd last Friday for 7 times
Every 6 months