Skip to main content

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

NameTypeDescription
dateDatethe 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

NameTypeDescription
dateDatethe 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

NameTypeDescription
dateDatea date.

Returns

number

total number of mondays.

Defined in

src/utilities/recurrenceDatesUtil.ts:40