talawa-api / Exports / helpers/event/recurringEventHelpers/getRecurringInstanceDates
Module: helpers/event/recurringEventHelpers/getRecurringInstanceDates
Table of contents
Functions
Functions
getRecurringInstanceDates
▸ getRecurringInstanceDates(recurrenceRuleString
, recurrenceStartDate
, recurrenceEndDate
, queryUptoDate?
): Date
[]
This function generates the dates of recurrence for the recurring event.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
recurrenceRuleString | string | undefined | the rrule string for the recurrenceRule. |
recurrenceStartDate | Date | undefined | the starting date from which we want to generate instances. |
recurrenceEndDate | null | Date | undefined | - |
queryUptoDate | Date | recurrenceStartDate | the limit date to query recurrenceRules (To be used for dynamic instance generation during queries). |
Returns
Date
[]
Dates for recurring instances to be generated during this operation.
Remarks
The following steps are followed:
- Get the date limit for instance generation based on its recurrence frequency.
- Get the dates for recurring event instances.
Defined in
src/helpers/event/recurringEventHelpers/getRecurringInstanceDates.ts:23