UNPKG

@uplink-protocol/calendar-controller

Version:

Flexible calendar API supporting both calendar and date-picker integrations for any JavaScript framework or library

40 lines (20 loc) 661 B
[**@uplink-protocol/form-controller v0.2.1**](../README.md) *** [@uplink-protocol/form-controller](../globals.md) / isDateInRange # Function: isDateInRange() > **isDateInRange**(`date`, `minDate`, `maxDate`): `boolean` Defined in: [utils/calendar.utils.ts:102](https://github.com/jmkcoder/uplink-protocol-calendar/blob/311e0b81efba7399cf1c367c0a2007aa66f3b830/src/utils/calendar.utils.ts#L102) Check if a date is within a range (inclusive) ## Parameters ### date `Date` The date to check ### minDate The minimum date `null` | `Date` ### maxDate The maximum date `null` | `Date` ## Returns `boolean` Boolean indicating if date is within range