# MultiViewCalendar Disabled Dates

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

The MultiViewCalendar supports the following approaches for disabling dates:

* [Using a function](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/multiviewcalendar/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/multiviewcalendar/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/multiviewcalendar/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 MultiViewCalendar.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/dateinputs/multiviewcalendar/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/multiviewcalendar/using_date_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.

```ts
import { Day } from '@progress/kendo-date-math';

@Component({
  selector: 'my-app',
  template: `
    <kendo-multiviewcalendar
      [disabledDates]="disabledDates"
    >
    </kendo-multiviewcalendar>
  `
})
export class AppComponent {
  public disabledDates: Day[] = [Day.Saturday, Day.Sunday];
}
```

## Preventing Invalid Input

The MultiViewCalendar selected range can include disabled dates. To notify users that their input is invalid, use the built-in forms validation for disabled dates. By default, forms validation is disabled. To enable it, set the [`disabledDatesRangeValidation`](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/multiviewcalendarcomponent#disableddatesrangevalidation) property to `true`.

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

## Suggested Links

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