I need to set my date pickers minimum date to today in code ?
Just use the minimumdate property:
datePicker.minimumDate = [NSDate date];
Swift 3 & 4
let datePicker = UIDatePicker()
datePicker.minimumDate = Date()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With