getNextDays
Stentor API Reference / stentor-utils/src / getNextDays
Function: getNextDays()
getNextDays(
n,timezone?):DateTime[]
Defined in: packages/stentor-utils/src/crm.ts:57
The next n calendar days after today, where "today" is the date in the given IANA timezone.
Parameters​
n​
number
How many days, starting with tomorrow
timezone?​
string = DEFAULT_CRM_TIMEZONE
IANA timezone, for example "America/Chicago". Defaults to America/New_York.
Returns​
DateTime[]
Throws​
RangeError when the timezone is not a known IANA zone