---
sidebar_position: 5
---
# Disabling Dates {#disabled}
Use the `disabled` prop to prevent specific dates from being selected in any mode.
## Matchers Types
The prop accepts a [`Matcher`](../api/type-aliases/Matcher.md) or an array of matchers to specify which dates should be disabled.
| Matcher Type | Description |
| ----------------------------------------------------- | ------------------------------------------------------------------------- |
| `boolean` | Disable all dates. |
| `Date` | Matches a specific date. |
| `Date[]` | Matches any date in the array of dates. |
| [`DateRange`](../api/type-aliases/DateRange.md) | Matches a range of dates, including the start and end dates. |
| [`DateBefore`](../api/type-aliases/DateBefore.md) | Matches all dates before a specific date (exclusive). |
| [`DateAfter`](../api/type-aliases/DateAfter.md) | Matches all dates after a specific date (exclusive). |
| [`DateInterval`](../api/type-aliases/DateInterval.md) | Matches dates between two dates (exclusive of the start and end dates). |
| [`DayOfWeek`](../api/type-aliases/DayOfWeek.md) | Matches specific days of the week (e.g., Sunday is `0`, Saturday is `6`). |
| `(date: Date) => boolean` | A function that returns `true` if the given date matches the condition. |
| [`Matcher[]`](../api/type-aliases/Matcher.md) | An array of the matchers listed above. |
```tsx
// Disable all dates
// Disable a specific date
// Disable an array of dates
// Disable a range of dates
// Disable specific days of the week
// disable weekends
// Disable dates before a specific date
// Disable dates after a specific date
// Disable dates between two dates
```
## Disabling Weekends
Use the `dayOfWeek` matcher, where `0` is Sunday and `6` is Saturday.
```tsx
```
## Disabling Dates in the Past
Use the `before` matcher to disable all dates before today.
```tsx
```
## Excluding Disabled Dates from Range {#exclude-disabled}
In `range` mode, disabled dates are included in the selected range by default. To exclude disabled dates from the range, use the `excludeDisabled` prop. If a disabled date is selected, the range will reset.
```tsx
```