iOS Setting Minimum-Maximum Date


Example

You can set the minimum and the maximum date that UIDatePicker can show.

Minimum date

[datePicker setMinimumDate:[NSDate date]];

Maximum date

[datePicker setMaximumDate:[NSDate date]];