# Blackout Dates

The blackout dates feature of the DateRangePicker component allows you to define a set of dates that will be disabled and the user cannot select them.

The list of disabled dates is assigned through the `BlackoutDates` property of `RadDateRangePicker`. The property expects a collection of `DateTime` objects.

**Blackout the weekends of the current month**

```C#
var weekends = new ObservableCollection<DateTime>();
var daysInMonth = DateTime.DaysInMonth(DateTime.Today.Year, DateTime.Today.Month);
var startDate = new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1);
for (int i = 0; i < daysInMonth; i++)
{
    var currentDate = startDate.AddDays(i);
    if (currentDate.DayOfWeek == DayOfWeek.Saturday || currentDate.DayOfWeek == DayOfWeek.Sunday)
    {
        weekends.Add(currentDate);
    }
}
this.dateRangePicker.BlackoutDates = weekends;
```

![Picture showing the blackout dates feature of WPF RadDateRangePicker](https://www.telerik.com/products/wpf/documentation/assets/1324cb38427808e258d8dbee9925a47f/raddaterangepicker-blackout-dates-0.png)

## See Also

* [Getting Started](https://www.telerik.com/products/wpf/documentation/controls/raddaterangepicker/getting-started)
* [Selection](https://www.telerik.com/products/wpf/documentation/controls/raddaterangepicker/programmatic-selection)
