talawa-api / Exports / utilities/recurrenceDatesUtil
Module: utilities/recurrenceDatesUtil
Table of contents
Functions
Functions
convertToRRuleDateString
▸ convertToRRuleDateString(date
): string
This function converts the date to a valid rrule string argument.
Parameters
Name | Type | Description |
---|---|---|
date | Date | the date string to be converted. |
Returns
string
converted date string.
Defined in
src/utilities/recurrenceDatesUtil.ts:24
convertToUTCDate
▸ convertToUTCDate(date
): Date
This function converts the date to UTC.
Parameters
Name | Type | Description |
---|---|---|
date | Date | the date to be converted. |
Returns
Date
converted date.
Defined in
src/utilities/recurrenceDatesUtil.ts:7
countTotalMondaysInMonth
▸ countTotalMondaysInMonth(date
): number
This function counts the total number of mondays in a month.
Parameters
Name | Type | Description |
---|---|---|
date | Date | a date. |
Returns
number
total number of mondays.