Skip to main content

nextOccurrence

Stentor API Reference


Stentor API Reference / stentor-utils/src / nextOccurrence

Function: nextOccurrence()

nextOccurrence(holiday, holidays, fromDate): string | undefined

Defined in: packages/stentor-utils/src/date-time/blockedHolidays.ts:242

The next date (YYYY-MM-DD) on or after fromDate the holiday falls on, regardless of whether it is enabled. holidays is the list relative rules resolve against.

Parameters​

holiday​

BlockedHoliday

holidays​

readonly BlockedHoliday[]

fromDate​

string

Returns​

string | undefined