---
title: "multiDateSelection(_:canSelectDate:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uicalendarselectionmultidatedelegate/multidateselection(_:canselectdate:)"
---

# multiDateSelection(_:canSelectDate:)

Returns whether a user can select a date represented by date components in the calendar view.

## Declaration

```swift
optional func multiDateSelection(_ selection: UICalendarSelectionMultiDate, canSelectDate dateComponents: DateComponents) -> Bool
```

## Parameters

- `selection`: An object that tracks multiple dates that a user selects from a calendar view.
- `dateComponents`: Date components that represent a date to select.

## Return Value

Return Value A Boolean value that indicates whether the calendar view can select the date you provide.

## Discussion

Discussion The calendar view displays non-selectable dates as disabled.

## See Also

### Getting selectable dates

- [multiDateSelection(_:canDeselectDate:)](uikit/uicalendarselectionmultidatedelegate/multidateselection(_:candeselectdate:).md)
