Skip to main content

Function: rangeIncludesDate()

rangeIncludesDate(range, date, excludeEnds, dateLib): boolean

Defined in: src/utils/rangeIncludesDate.ts:10

Determines whether a given date is inside a specified date range.

Parameters

ParameterTypeDefault valueDescription
rangeDateRangeundefined-
dateDateundefined-
excludeEndsbooleanfalseIf true, the ends of the range are excluded.
dateLibDateLibdefaultDateLib-

Returns

boolean

Since

9.0.0