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
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
interval | "day" | "week" | "month" | "1/4 year" | "1/2 year" | "year" | The interval to use |
startDate | Date | The start date to use |
anchorDay? | number | null | Optional anchor day (if not provided, derived from startDate) |
Returns
Section titled “Returns”Date
The next date