title: UIDatePicker min and max date not changing
body: <p>I'm using Xcode 8.0 and building on iOS 10 with Swift 3.</p>
  
  <p>I have UIDatePicker in my view controller, connected as an outlet :</p>
  
  <pre><code>@IBOutlet weak var datePicker: UIDatePicker!
  </code></pre>
  
  <p>I'm trying to set maximum and minimum dates for it. The code I'm using : </p>
  
  <pre><code>self.datePicker.minimumDate = Date()
  self.datePicker.maximumDate = Date(timeIntervalSinceNow: 60*60*24*365)
  self.datePicker.datePickerMode = UIDatePickerMode.date
  </code></pre>
  
  <p>is not working - date picker can go infinitely back and forward in time.</p>
  
  <p>Question is - what am I missing here?</p>