---
title: UIDatePicker.Mode
framework: uikit
role: symbol
role_heading: Enumeration
path: uikit/uidatepicker/mode
---

# UIDatePicker.Mode

The mode displayed by the date picker.

## Declaration

```swift
enum Mode
```

## Overview

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 property.

## Topics

### Constants

- [UIDatePicker.Mode.time](uikit/uidatepicker/mode/time.md)
- [UIDatePicker.Mode.date](uikit/uidatepicker/mode/date.md)
- [UIDatePicker.Mode.dateAndTime](uikit/uidatepicker/mode/dateandtime.md)
- [UIDatePicker.Mode.yearAndMonth](uikit/uidatepicker/mode/yearandmonth.md)
- [UIDatePicker.Mode.countDownTimer](uikit/uidatepicker/mode/countdowntimer.md)

### Initializers

- [init(rawValue:)](uikit/uidatepicker/mode/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Configuring the date picker mode

- [datePickerMode](uikit/uidatepicker/datepickermode.md)
