title: UIDatePicker returns wrong date (-1 day to the real date)
body: <p>I have a <code>UIDatePicker</code> mm/dd/yy. It works fine, but there is one problem: I set <code>minimum</code> and <code>maximum</code> date to it, and when user tries to choose the forbidden day, month or year, the <code>[datePicker date]</code> property begins working wrong. It returns you the <code>current day - 1</code> or <code>current month - 1</code> or <code>current year - 1</code>. I added some pictures, so you can see the situation.</p>
  
  <p><img src="https://i.stack.imgur.com/vmgEj.png" alt="Correct date"> <strong>This is correct</strong><br>
  <img src="https://i.stack.imgur.com/tcVHQ.png" alt="wrong date"> <strong>This is wrong (After choosing the forbidden date)</strong></p>
  
  <p>Does somebody know, how can I fix this ? Thanks !</p>
  
  <p><strong>UPD:</strong>
  Code</p>
  
  <pre><code>[self.myDatePicker setMinimumDate:[NSDate date]];
  [self.myDatePicker setMaximumDate:[[NSDate date] addTimeInterval:2 * 365.25 * 24 * 60 * 60]]; // to get upto 5 years
  NSDate * now = [[NSDate alloc] init];
  [self.myDatePicker setDate: now animated: YES];
  
  self.myDatePicker.timeZone = [NSTimeZone localTimeZone];
  self.myDatePicker.calendar = [NSCalendar currentCalendar];
  </code></pre>