DateRange - gomeddo/js-sdk GitHub Wiki
Helper object containing a representation of a date range. Used to specify the ranges for timeslots and multi-dimensional availability during the blueprint timeslot generation process.
Example
const dateRange = new DateRange(startDate, durationDays, offsetDays)
setStartDate
Syntax
setStartDate(startDate)
Parameters:
startDate
The start date of the requested date range.
Return value: The updated date range object.
setDurationDays
Syntax
setDurationDays(durationDays)
Parameters:
durationDays
The number of days that the date range will cover. Will default to 7 if left unspecified.
Return value: The updated date range object.
setOffsetDays (optional)
Syntax
setOffsetDays(offsetDays)
Parameters:
offsetDays
The number of days to offset the date range from the specified start date. Will default to 0 if left unspecified.
Return value: The updated date range object.