<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UICalendarSelectionSingleDateDelegate/dateSelection(_:didSelectDate:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UICalendarSelectionSingleDateDelegate(im)dateSelection:didSelectDate:"
  },
  "title" : "dateSelection(_:didSelectDate:)"
}
-->

# dateSelection(_:didSelectDate:)

Informs the delegate that a user selected a date represented by date components.

```
func dateSelection(_ selection: UICalendarSelectionSingleDate, didSelectDate dateComponents: DateComponents?)
```

## Parameters

`selection`

An object that tracks a date that a user selects from a calendar view.

`dateComponents`

Date components that represent a date the user selected, or `nil` if the user deselected a date.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)