Instance Property


The date displayed by the date picker.


@property(nonatomic, strong) NSDate *date;


Use this property to get and set the currently selected date. The default value of this property is the date when the UIDatePicker object is created. Setting this property animates the date picker by spinning the wheels to the new date and time; if you don't want any animation to occur when you set the date, use the setDate:animated: method, passing NO for the animated parameter. This behavior of this property is undefined when the mode is set to UIDatePickerModeCountDownTimer; refer instead to the countDownDuration property.

See Also

Managing the Date and Calendar


The calendar to use for the date picker.


The locale used by the date picker.

- setDate:animated:

Sets the date to display in the date picker, with an option to animate the setting.


The time zone reflected in the date displayed by the date picker.