---
title: preferredDatePickerStyle
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uidatepicker/preferreddatepickerstyle
---

# preferredDatePickerStyle

The preferred style of the date picker.

## Declaration

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

## Discussion

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. For a list of styles, see UIDatePickerStyle.

## See Also

### Configuring the date picker style

- [datePickerStyle](uikit/uidatepicker/datepickerstyle.md)
- [UIDatePickerStyle](uikit/uidatepickerstyle.md)
