Instance Property

date

The date displayed by the date picker.

Declaration

@property(nonatomic, strong) NSDate *date;

Discussion

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

calendar

The calendar to use for the date picker.

locale

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.

timeZone

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