title: How to know two dates are same
body: <p>HI i have two date pickers.</p>
  
  <p>datepicker1, datepicker2.</p>
  
  <p>I need datepicker1.date to compare with datepicker2.date</p>
  
  <p>i need to verify that the two dates are same or not . How is it possible. Thanks in advance.i have used the below one but it is not working</p>
  
  <pre><code>if([datePicker.date isEqualToDate:FromPicker.date])
  </code></pre>