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

# preferredDatePickerStyle

The preferred style of the date picker.

```
var preferredDatePickerStyle: UIDatePickerStyle { get set }
```

## Discussion

Use this property to specify the display style that you prefer. If the style changes, the date picker may generate a layout pass to update the display.

The default style is [`UIDatePickerStyle.automatic`](/documentation/UIKit/UIDatePickerStyle/automatic). For a list of styles, see [`UIDatePickerStyle`](/documentation/UIKit/UIDatePickerStyle).

---

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)