Skip to content

Function: getFirstOccurrence()

function getFirstOccurrence(
startDate,
anchorDay,
interval): Date;

Defined in: shared/src/helper/financeHelper/financeHelperFunction.ts:36

Get the first occurrence date >= startDate that matches the anchor day.

ParameterType
startDateDate
anchorDaynumber
interval"day" | "week" | "month" | "1/4 year" | "1/2 year" | "year"

Date