datePickerMode
The mode of the date picker.
Declaration
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. See UIDatePicker.Mode for a list of mode constants.