title: NSDateComponents comparison
body: <p>I would like to compare to NSDates but only with regard to hour and minute. The first date is given from an array, the second one is the current. I didn't arrive with this method:</p>
  
  <pre><code> NSDateComponents *components = [gregorian components:unitFlags
                                                  fromDate:date
                                                    toDate:currentDate options:0];
  </code></pre>
  
  <p>Any simple and good idea to solve my problem?</p>
  
  <p><strong>EDIT:</strong>
  User 'sunny' posted some further methods to solve my problem: <a href="https://stackoverflow.com/questions/949416/how-to-compare-two-dates-in-objective-c">How to compare two dates in Objective-C</a></p>