<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIDatePicker/date",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIDatePicker(py)date"
  },
  "title" : "date"
}
-->

# date

The date displayed by the date picker.

```
var date: Date { get set }
```

## Discussion

Use this property to get and set the currently selected date. The default value of this property is the date when the [`UIDatePicker`](/documentation/UIKit/UIDatePicker) object is created. Setting this property animates the date picker by spinning the wheels to the new date and time; if you don’t want any animation to occur when you set the date, use the [`setDate(_:animated:)`](/documentation/UIKit/UIDatePicker/setDate(_:animated:)) method, passing <doc://com.apple.documentation/documentation/Swift/false> for the `animated` parameter. This behavior of this property is undefined when the mode is set to [`UIDatePicker.Mode.countDownTimer`](/documentation/UIKit/UIDatePicker/Mode/countDownTimer); refer instead to the [`countDownDuration`](/documentation/UIKit/UIDatePicker/countDownDuration) property.

---

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)