Skip to main content

Function: rangeIncludesDate()

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

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

Defined in​

src/utils/rangeIncludesDate.ts:10