Skip to content

Function: getNextDate()

function getNextDate(
interval,
startDate,
anchorDay?): Date;

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

Get the next date for a given interval and start date

ParameterTypeDescription
interval"day" | "week" | "month" | "1/4 year" | "1/2 year" | "year"The interval to use
startDateDateThe start date to use
anchorDay?number | nullOptional anchor day (if not provided, derived from startDate)

Date

The next date