# Calendar Disabled Dates

The Calendar allows you to disable the selection of specified dates by providing a [`disabledDates`](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/calendarcomponent#disableddates) value to the component.

The Calendar supports the following approaches for disabling dates:

* [Using a function](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/calendar/disabled-dates#using-a-function)—The format for this input is `(date: Date) => boolean`. The approach disables each date for which the provided function returns `true`.
* [Using an array of dates](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/calendar/disabled-dates#using-a-date-array)—The format for this input is [`Date[]`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Date). The approach disables only the dates that are explicitly listed.
* [Using an array of days](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/calendar/disabled-dates#using-a-day-array)—The format for this input is [`Day[]`](https://www.telerik.com/kendo-angular-ui-develop/components/date-math/api/day). The approach disables the specified days of the week.

## Using a Function

The following example demonstrates how to provide a function to disable every even date in the Calendar.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/dateinputs/calendar/disabled_dates/source.txt)

## Using a Date Array

The following example demonstrates how to provide an array of dates to disable the listed dates.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/dateinputs/calendar/disabled_dates/using_data_array/source.txt)

## Using a Day Array

The following example demonstrates how to provide an array of [`Day`](https://www.telerik.com/kendo-angular-ui-develop/components/date-math/api/day) enum values to disable the listed days of the week, that is, the days of the weekend.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/dateinputs/calendar/disabled_dates/using_day_array/source.txt)

## Suggested Links

* [API Reference of the Calendar](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/calendarcomponent)
