# Date Ranges in .NET MAUI DatePicker

Use the Telerik UI for .NET MAUI DatePicker date-range settings when you want users to select a date only within a specific period. This is useful for scenarios such as booking windows, reporting periods, or restricting the control to valid business dates.

Use the following DatePicker properties to define the available date range:

* `MinimumDate` (`DateTime`)—Defines the first available date in the range. The default value is `DateTime(2000, 1, 1)`.
* `MaximumDate` (`DateTime`)—Defines the last available date in the range. The default value is `DateTime(2099, 12, 31, 23, 59, 59)`.

Use a date range when you want to:

* Limit the available dates to a known time period.
* Prevent users from selecting dates outside a business rule.
* Guide users to a valid start and end period for data entry.

## Example with Date Range

The following example defines a DatePicker that allows selection only within the 2020 calendar year.

1. Define the DatePicker and set `MinimumDate` and `MaximumDate`:

```xaml
<telerik:RadDatePicker MinimumDate="2020,1,1"
                       MaximumDate="2020,12,31"
                       DisplayStringFormat="yyy-ddd-MMM" />
```

2. Add the `telerik` namespace if it is not already declared in your XAML page:

```xaml
xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"
```

In this configuration:

* `MinimumDate` allows dates starting from January 1, 2020.
* `MaximumDate` allows dates up to December 31, 2020.
* `DisplayStringFormat` controls how the selected date is displayed in the input area.

The following image shows the result:

![DatePicker Date Range](https://www.telerik.com/maui-ui/documentation/assets/60aace4e498d80eea9dcb65a7f7f9c34/datepicker-date-range.png)

## See Also

* [Formatting the Telerik UI for .NET MAUI DatePicker](https://www.telerik.com/maui-ui/documentation/controls/datepicker/formatting)
* [.NET MAUI DatePicker Templates](https://www.telerik.com/maui-ui/documentation/controls/datepicker/templates)
* [.NET MAUI DatePicker Selection](https://www.telerik.com/maui-ui/documentation/controls/datepicker/selection)
* [.NET MAUI DatePicker Styling](https://www.telerik.com/maui-ui/documentation/controls/datepicker/styling/styling)
* [.NET MAUI DatePicker Product Page](https://www.telerik.com/maui-ui/datepicker)
