# DateRange Date Ranges

The DateRange component utilizes the [MultiViewCalendar](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/multiviewcalendarcomponent) component, which enables the selection of date ranges.

To enable the MultiViewCalendar range selection, set the [`selection`](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/multiviewcalendarcomponent#selection) input property to `range`. This configuration will update the selection range upon user interaction.

The following example demonstrates how to define the MultiViewCalendar that the DateRange uses with a selection range.

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

## Calendar Selection Ranges

The `DateRangeSelection` directive allows you to set a specific date range selection and listen to any changes of that range.

> The `DateRangeSelection` directive will be `deprecated` in a future version. We recommend using the MultiViewCalendar [`range selection`](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/multiviewcalendar/selection-modes#range-selection).

The following example demonstrates how to always select a whole week on click.

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

## Setting Ranges with a Service

The [`DateRangeService`](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/daterangeservice) communicates the changes that are performed by the DateRange components and directives.

The following example demonstrates how to propagate a change in the selection range to all relevant DateRange components.

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

## Controlling the Active Selection End

The `DateRangeSelection` directive allows you to determine the end of the selection range which will be updated. By default, the directive toggles the active selection end on change.

> The `DateRangeSelection` directive will be `deprecated` in a future version. We recommend using the MultiViewCalendar [`range selection`](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/multiviewcalendar/selection-modes#range-selection).

The following example demonstrates how to enforce updates to the end selection range only.

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

## Suggested Links

* [API Reference of the DateRange](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/daterangecomponent)
* [API Reference of the MultiViewCalendar](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/multiviewcalendarcomponent)
* [`DateRangePopupComponent`](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/daterangepopupcomponent)
* [`DateRangeSelectionDirective`](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/daterangeselectiondirective)
* [`DateRangeStartInputDirective`](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/daterangestartinputdirective)
* [`DateRangeEndInputDirective`](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/daterangeendinputdirective)
