Skip to content

RecurrenceRule

Recurrence rule used with reminders and calendar events.

A recurrence rule specifies how often a reminder or a calendar event should repeat.

complexMonthly(interval, daysOfTheWeek, daysOfTheMonth, setPositions)

Section titled “complexMonthly(interval, daysOfTheWeek, daysOfTheMonth, setPositions)”

Constructs a complex monthly recurrence rule.

static complexMonthly(interval: number, daysOfTheWeek: [number], daysOfTheMonth: [number], setPositions: [number]): RecurrenceRule

The interval should have a value greater than 0 and specifies how often the pattern repeats. For example, an interval of 1 specifies that the rule should repeat every month and a value of 3 specifies that the rule should repeat every third month.

The setPositions filters which recurrences to include in the rule’s frequency. For example, a yearly recurrence rule that has a daysOfTheWeek value that specifies Monday through Friday and setPositions contain 2 and -1, occurs only on the second weekday and last weekday of every year.

interval number

Interval at which to repeat the rule.

daysOfTheWeek [number]

Days of the week to repeat the rule. Values range from 1 to 7, with Sunday being 1.

daysOfTheMonth [number]

Days of the month to repeat the rule. Values range from 1 to 31 and from -1 to -31.

setPositions [number]

Filters which recurrences to include in the rule’s frequency.

RecurrenceRule

Constructed recurrence rule.

complexMonthlyEndDate(interval, daysOfTheWeek, daysOfTheMonth, setPositions, endDate)

Section titled “complexMonthlyEndDate(interval, daysOfTheWeek, daysOfTheMonth, setPositions, endDate)”

Constructs a complex monthly recurrence rule with an end date.

static complexMonthlyEndDate(interval: number, daysOfTheWeek: [number], daysOfTheMonth: [number], setPositions: [number], endDate: Date): RecurrenceRule

The interval should have a value greater than 0 and specifies how often the pattern repeats. For example, an interval of 1 specifies that the rule should repeat every month and a value of 3 specifies that the rule should repeat every third month.

The setPositions filters which recurrences to include in the rule’s frequency. For example, a yearly recurrence rule that has a daysOfTheWeek value that specifies Monday through Friday and setPositions contain 2 and -1, occurs only on the second weekday and last weekday of every year.

interval number

Interval at which to repeat the rule.

daysOfTheWeek [number]

Days of the week to repeat the rule. Values range from 1 to 7, with Sunday being 1.

daysOfTheMonth [number]

Days of the month to repeat the rule. Values range from 1 to 31 and from -1 to -31.

setPositions [number]

Filters which recurrences to include in the rule’s frequency.

endDate Date

Date at which the recurrence rule should end.

RecurrenceRule

Constructed recurrence rule.

complexMonthlyOccurrenceCount(interval, daysOfTheWeek, daysOfTheMonth, setPositions, occurrenceCount)

Section titled “complexMonthlyOccurrenceCount(interval, daysOfTheWeek, daysOfTheMonth, setPositions, occurrenceCount)”

Constructs a complex monthly recurrence rule with an occurrence count.

static complexMonthlyOccurrenceCount(interval: number, daysOfTheWeek: [number], daysOfTheMonth: [number], setPositions: [number], occurrenceCount: number): RecurrenceRule

The interval should have a value greater than 0 and specifies how often the pattern repeats. For example, an interval of 1 specifies that the rule should repeat every month and a value of 3 specifies that the rule should repeat every third month.

The setPositions filters which recurrences to include in the rule’s frequency. For example, a yearly recurrence rule that has a daysOfTheWeek value that specifies Monday through Friday and setPositions contain 2 and -1, occurs only on the second weekday and last weekday of every year.

interval number

Interval at which to repeat the rule.

daysOfTheWeek [number]

Days of the week to repeat the rule. Values range from 1 to 7, with Sunday being 1.

daysOfTheMonth [number]

Days of the month to repeat the rule. Values range from 1 to 31 and from -1 to -31.

setPositions [number]

Filters which recurrences to include in the rule’s frequency.

occurrenceCount number

Number of times the rule should repeat before it ends.

RecurrenceRule

Constructed recurrence rule.

complexWeekly(interval, daysOfTheWeek, setPositions)

Section titled “complexWeekly(interval, daysOfTheWeek, setPositions)”

Constructs a complex weekly recurrence rule.

static complexWeekly(interval: number, daysOfTheWeek: [number], setPositions: [number]): RecurrenceRule

The interval should have a value greater than 0 and specifies how often the pattern repeats. For example, an interval of 1 specifies that the rule should repeat every week and a value of 3 specifies that the rule should repeat every third week.

The setPositions filters which recurrences to include in the rule’s frequency. For example, a yearly recurrence rule that has a daysOfTheWeek value that specifies Monday through Friday and setPositions contain 2 and -1, occurs only on the second weekday and last weekday of every year.

interval number

Interval at which to repeat the rule.

daysOfTheWeek [number]

Days of the week to repeat the rule. Values range from 1 to 7, with Sunday being 1.

setPositions [number]

Filters which recurrences to include in the rule’s frequency.

RecurrenceRule

Constructed recurrence rule.

complexWeeklyEndDate(interval, daysOfTheWeek, setPositions, endDate)

Section titled “complexWeeklyEndDate(interval, daysOfTheWeek, setPositions, endDate)”

Constructs a complex weekly recurrence rule with an end date.

static complexWeeklyEndDate(interval: number, daysOfTheWeek: [number], setPositions: [number], endDate: Date): RecurrenceRule

The interval should have a value greater than 0 and specifies how often the pattern repeats. For example, an interval of 1 specifies that the rule should repeat every week and a value of 3 specifies that the rule should repeat every third week.

The setPositions filters which recurrences to include in the rule’s frequency. For example, a yearly recurrence rule that has a daysOfTheWeek value that specifies Monday through Friday and setPositions contain 2 and -1, occurs only on the second weekday and last weekday of every year.

interval number

Interval at which to repeat the rule.

daysOfTheWeek [number]

Days of the week to repeat the rule. Values range from 1 to 7, with Sunday being 1.

setPositions [number]

Filters which recurrences to include in the rule’s frequency.

endDate Date

Date at which the recurrence rule should end.

RecurrenceRule

Constructed recurrence rule.

complexWeeklyOccurrenceCount(interval, daysOfTheWeek, setPositions, occurrenceCount)

Section titled “complexWeeklyOccurrenceCount(interval, daysOfTheWeek, setPositions, occurrenceCount)”

Constructs a complex weekly recurrence rule with an occurrence count.

static complexWeeklyOccurrenceCount(interval: number, daysOfTheWeek: [number], setPositions: [number], occurrenceCount: number): RecurrenceRule

The interval should have a value greater than 0 and specifies how often the pattern repeats. For example, an interval of 1 specifies that the rule should repeat every week and a value of 3 specifies that the rule should repeat every third week.

The setPositions filters which recurrences to include in the rule’s frequency. For example, a yearly recurrence rule that has a daysOfTheWeek value that specifies Monday through Friday and setPositions contain 2 and -1, occurs only on the second weekday and last weekday of every year.

interval number

Interval at which to repeat the rule.

daysOfTheWeek [number]

Days of the week to repeat the rule. Values range from 1 to 7, with Sunday being 1.

setPositions [number]

Filters which recurrences to include in the rule’s frequency.

occurrenceCount number

Number of times the rule should repeat before it ends.

RecurrenceRule

Constructed recurrence rule.

complexYearly(interval, daysOfTheWeek, monthsOfTheYear, weeksOfTheYear, daysOfTheYear, setPositions)

Section titled “complexYearly(interval, daysOfTheWeek, monthsOfTheYear, weeksOfTheYear, daysOfTheYear, setPositions)”

Constructs a complex yearly recurrence rule.

static complexYearly(interval: number, daysOfTheWeek: [number], monthsOfTheYear: [number], weeksOfTheYear: [number], daysOfTheYear: [number], setPositions: [number]): RecurrenceRule

The interval should have a value greater than 0 and specifies how often the pattern repeats. For example, an interval of 1 specifies that the rule should repeat every year and a value of 3 specifies that the rule should repeat every third year.

The setPositions filters which recurrences to include in the rule’s frequency. For example, a yearly recurrence rule that has a daysOfTheWeek value that specifies Monday through Friday and setPositions contain 2 and -1, occurs only on the second weekday and last weekday of every year.

interval number

Interval at which to repeat the rule.

daysOfTheWeek [number]

Days of the week to repeat the rule. Values range from 1 to 7, with Sunday being 1.

monthsOfTheYear [number]

The months of the year to repeat the rule. Values range from 1 to 12.

weeksOfTheYear [number]

The weeks of the year to repeat the rule. Values range from 1 to 53 and -1 to -53.

daysOfTheYear [number]

The days of the year to repeat the rule. Values range from 1 to 366 and -1 to -366.

setPositions [number]

Filters which recurrences to include in the rule’s frequency.

RecurrenceRule

Constructed recurrence rule.

complexYearlyEndDate(interval, daysOfTheWeek, monthsOfTheYear, weeksOfTheYear, daysOfTheYear, setPositions, endDate)

Section titled “complexYearlyEndDate(interval, daysOfTheWeek, monthsOfTheYear, weeksOfTheYear, daysOfTheYear, setPositions, endDate)”

Constructs a complex yearly recurrence rule with an end date.

static complexYearlyEndDate(interval: number, daysOfTheWeek: [number], monthsOfTheYear: [number], weeksOfTheYear: [number], daysOfTheYear: [number], setPositions: [number], endDate: Date): RecurrenceRule

The interval should have a value greater than 0 and specifies how often the pattern repeats. For example, an interval of 1 specifies that the rule should repeat every year and a value of 3 specifies that the rule should repeat every third week.

The setPositions filters which recurrences to include in the rule’s frequency. For example, a yearly recurrence rule that has a daysOfTheWeek value that specifies Monday through Friday and setPositions contain 2 and -1, occurs only on the second weekday and last weekday of every year.

interval number

Interval at which to repeat the rule.

daysOfTheWeek [number]

Days of the week to repeat the rule. Values range from 1 to 7, with Sunday being 1.

monthsOfTheYear [number]

The months of the year to repeat the rule. Values range from 1 to 12.

weeksOfTheYear [number]

The weeks of the year to repeat the rule. Values range from 1 to 53 and -1 to -53.

daysOfTheYear [number]

The days of the year to repeat the rule. Values range from 1 to 366 and -1 to -366.

setPositions [number]

Filters which recurrences to include in the rule’s frequency.

endDate Date

Date at which the recurrence rule should end.

RecurrenceRule

Constructed recurrence rule.

complexYearlyOccurrenceCount(interval, daysOfTheWeek, monthsOfTheYear, weeksOfTheYear, daysOfTheYear, setPositions, occurrenceCount)

Section titled “complexYearlyOccurrenceCount(interval, daysOfTheWeek, monthsOfTheYear, weeksOfTheYear, daysOfTheYear, setPositions, occurrenceCount)”

Constructs a complex yearly recurrence rule with an occurrence count.

static complexYearlyOccurrenceCount(interval: number, daysOfTheWeek: [number], monthsOfTheYear: [number], weeksOfTheYear: [number], daysOfTheYear: [number], setPositions: [number], occurrenceCount: number): RecurrenceRule

The interval should have a value greater than 0 and specifies how often the pattern repeats. For example, an interval of 1 specifies that the rule should repeat every year and a value of 3 specifies that the rule should repeat every third year.

The setPositions filters which recurrences to include in the rule’s frequency. For example, a yearly recurrence rule that has a daysOfTheWeek value that specifies Monday through Friday and setPositions contain 2 and -1, occurs only on the second weekday and last weekday of every year.

interval number

Interval at which to repeat the rule.

daysOfTheWeek [number]

Days of the week to repeat the rule. Values range from 1 to 7, with Sunday being 1.

monthsOfTheYear [number]

The months of the year to repeat the rule. Values range from 1 to 12.

weeksOfTheYear [number]

The weeks of the year to repeat the rule. Values range from 1 to 53 and -1 to -53.

daysOfTheYear [number]

The days of the year to repeat the rule. Values range from 1 to 366 and -1 to -366.

setPositions [number]

Filters which recurrences to include in the rule’s frequency.

occurrenceCount number

Number of times the rule should repeat before it ends.

RecurrenceRule

Constructed recurrence rule.

Constructs a daily recurrence rule.

static daily(interval: number): RecurrenceRule

The interval should have a value greater than 0 and specifies how often the pattern repeats. For example, an interval of 1 specifies that the rule should repeat every day and a value of 3 specifies that the rule should repeat every third day.

interval number

Interval at which to repeat the rule.

RecurrenceRule

Constructed recurrence rule.

Constructs a daily recurrence rule with an end date.

static dailyEndDate(interval: number, endDate: Date): RecurrenceRule

The interval should have a value greater than 0 and specifies how often the pattern repeats. For example, an interval of 1 specifies that the rule should repeat every day and a value of 3 specifies that the rule should repeat every third day.

interval number

Interval at which to repeat the rule.

endDate Date

Date at which the recurrence rule should end.

RecurrenceRule

Constructed recurrence rule.

dailyOccurrenceCount(interval, occurrenceCount)

Section titled “dailyOccurrenceCount(interval, occurrenceCount)”

Constructs a daily recurrence rule with an occurrence count.

static dailyOccurrenceCount(interval: number, occurrenceCount: number): RecurrenceRule

The interval should have a value greater than 0 and specifies how often the pattern repeats. For example, an interval of 1 specifies that the rule should repeat every day and a value of 3 specifies that the rule should repeat every third day.

interval number

Interval at which to repeat the rule.

occurrenceCount number

Number of times the rule should repeat before it ends.

RecurrenceRule

Constructed recurrence rule.

Constructs a monthly recurrence rule.

static monthly(interval: number): RecurrenceRule

The interval should have a value greater than 0 and specifies how often the pattern repeats. For example, an interval of 1 specifies that the rule should repeat every month and a value of 3 specifies that the rule should repeat every third month.

interval number

Interval at which to repeat the rule.

RecurrenceRule

Constructed recurrence rule.

Constructs a monthly recurrence rule with an end date.

static monthlyEndDate(interval: number, endDate: Date): RecurrenceRule

The interval should have a value greater than 0 and specifies how often the pattern repeats. For example, an interval of 1 specifies that the rule should repeat every month and a value of 3 specifies that the rule should repeat every third month.

interval number

Interval at which to repeat the rule.

endDate Date

Date at which the recurrence rule should end.

RecurrenceRule

Constructed recurrence rule.

monthlyOccurrenceCount(interval, occurrenceCount)

Section titled “monthlyOccurrenceCount(interval, occurrenceCount)”

Constructs a monthly recurrence rule with an occurrence count.

static monthlyOccurrenceCount(interval: number, occurrenceCount: number): RecurrenceRule

The interval should have a value greater than 0 and specifies how often the pattern repeats. For example, an interval of 1 specifies that the rule should repeat every month and a value of 3 specifies that the rule should repeat every third month.

interval number

Interval at which to repeat the rule.

occurrenceCount number

Number of times the rule should repeat before it ends.

RecurrenceRule

Constructed recurrence rule.

Constructs a weekly recurrence rule.

static weekly(interval: number): RecurrenceRule

The interval should have a value greater than 0 and specifies how often the pattern repeats. For example, an interval of 1 specifies that the rule should repeat every week and a value of 3 specifies that the rule should repeat every third week.

interval number

Interval at which to repeat the rule.

RecurrenceRule

Constructed recurrence rule.

Constructs a weekly recurrence rule with an end date.

static weeklyEndDate(interval: number, endDate: Date): RecurrenceRule

The interval should have a value greater than 0 and specifies how often the pattern repeats. For example, an interval of 1 specifies that the rule should repeat every week and a value of 3 specifies that the rule should repeat every third week.

interval number

Interval at which to repeat the rule.

endDate Date

Date at which the recurrence rule should end.

RecurrenceRule

Constructed recurrence rule.

weeklyOccurrenceCount(interval, occurrenceCount)

Section titled “weeklyOccurrenceCount(interval, occurrenceCount)”

Constructs a weekly recurrence rule with an occurrence count.

static weeklyOccurrenceCount(interval: number, occurrenceCount: number): RecurrenceRule

The interval should have a value greater than 0 and specifies how often the pattern repeats. For example, an interval of 1 specifies that the rule should repeat every week and a value of 3 specifies that the rule should repeat every third week.

interval number

Interval at which to repeat the rule.

occurrenceCount number

Number of times the rule should repeat before it ends.

RecurrenceRule

Constructed recurrence rule.

Constructs a yearly recurrence rule.

static yearly(interval: number): RecurrenceRule

The interval should have a value greater than 0 and specifies how often the pattern repeats. For example, an interval of 1 specifies that the rule should repeat every year and a value of 3 specifies that the rule should repeat every third year.

interval number

Interval at which to repeat the rule.

RecurrenceRule

Constructed recurrence rule.

Constructs a yearly recurrence rule with an end date.

static yearlyEndDate(interval: number, endDate: Date): RecurrenceRule

The interval should have a value greater than 0 and specifies how often the pattern repeats. For example, an interval of 1 specifies that the rule should repeat every year and a value of 3 specifies that the rule should repeat every third year.

interval number

Interval at which to repeat the rule.

endDate Date

Date at which the recurrence rule should end.

RecurrenceRule

Constructed recurrence rule.

yearlyOccurrenceCount(interval, occurrenceCount)

Section titled “yearlyOccurrenceCount(interval, occurrenceCount)”

Constructs a yearly recurrence rule with an occurrence count.

static yearlyOccurrenceCount(interval: number, occurrenceCount: number): RecurrenceRule

The interval should have a value greater than 0 and specifies how often the pattern repeats. For example, an interval of 1 specifies that the rule should repeat every year and a value of 3 specifies that the rule should repeat every third year.

interval number

Interval at which to repeat the rule.

occurrenceCount number

Number of times the rule should repeat before it ends.

RecurrenceRule

Constructed recurrence rule.