<!--
{
  "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/datePickerMode",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIDatePicker(py)datePickerMode"
  },
  "title" : "datePickerMode"
}
-->

# datePickerMode

The mode of the date picker.

```
var datePickerMode: UIDatePicker.Mode { get set }
```

## Discussion

Use this property to change the type of information displayed by the date picker. It determines whether the date picker allows selection of a date, a time, both date and time, or a countdown time. The default mode is [`UIDatePicker.Mode.dateAndTime`](/documentation/UIKit/UIDatePicker/Mode/dateAndTime). See [`UIDatePicker.Mode`](/documentation/UIKit/UIDatePicker/Mode) for a list of mode constants.

---

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)