let picker = UIDatePicker()
var oneYearTime = TimeInterval()
oneYearTime = 365 * 24 * 60 * 60
let todeyDate = Date()
let oneYearFromToday = todeyDate.addingTimeInterval(oneYearTime)
// 2
et twoYearFromToday = todeyDate.addingTimeInterval(2 * oneYearTime)
// 3 Задаем пикеру диапазон
picker.minimumDate = oneYearFromToday
picker.maximumDate = twoYearFromToday
// 4
picker.countDownDuration = 2 * 60
// 5 Узнать какую дату выбрал юзер и сохранить ее
picker.addTarget(self, action: #selector(datePickerChenge(paramdatePicker:)), for: .valueChanged)