If I have a UIDatePicker, and I wish to set the minimum and maximum date range to be between thirty years ago and thirty years in the future, how would I set that up?
Set max date to today Swift 4.2
datePicker.maximumDate = Date()