<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIDatePicker/Mode",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UIDatePickerMode"
  },
  "title" : "UIDatePicker.Mode"
}
-->

# UIDatePicker.Mode

The mode displayed by the date picker.

```
enum Mode
```

## Overview

The mode determines whether dates, times, or both dates and times are displayed. You can also use it to specify the appearance of a countdown timer. You can set and retrieve the mode value through the [`datePickerMode`](/documentation/UIKit/UIDatePicker/datePickerMode) property.

## Topics

### Constants

[`UIDatePicker.Mode.time`](/documentation/UIKit/UIDatePicker/Mode/time)

A mode that displays the date in hours, minutes, and (optionally) an AM/PM designation. The exact items shown and their order depend upon the locale set. An example of this mode is “6 | 53 | PM”.

[`UIDatePicker.Mode.date`](/documentation/UIKit/UIDatePicker/Mode/date)

A mode that displays the date in months, days of the month, and years. The exact order of these items depends on the locale setting. An example of this mode is “November | 15 | 2007 “.

[`UIDatePicker.Mode.dateAndTime`](/documentation/UIKit/UIDatePicker/Mode/dateAndTime)

A mode that displays the date as unified day of the week, month, and day of the month values, plus hours, minutes, and (optionally) an AM/PM designation. The exact order and format of these items depends on the locale set. An example of this mode is “Wed Nov 15 | 6 | 53 | PM”.

[`UIDatePicker.Mode.yearAndMonth`](/documentation/UIKit/UIDatePicker/Mode/yearAndMonth)

A mode that displays the date in months and years.

[`UIDatePicker.Mode.countDownTimer`](/documentation/UIKit/UIDatePicker/Mode/countDownTimer)

A mode that displays hour and minute values, for example, “1 | 53”. The application must set a timer to fire at the proper interval and set the date picker as the seconds tick down.



---

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)