title: Issues with NSDate's earlierDate in iOS 5
body: <p>Before iOS 5, I could use the <code>==</code> operator to check the returned date from <code>earlierDate</code>:</p>
  
  <pre><code>if ([aDate earlierDate:bDate] == aDate)
      [someone doSomething];
  </code></pre>
  
  <p>But now, I have to do this:</p>
  
  <pre><code>if ([[aDate earlierDate:bDate] isEqualToDate:aDate])
      [someone doSomething];
  </code></pre>
  
  <p>Why would this be so?</p>
  
  <p>Actually, the issue is with using <code>==</code> for comparison vs. using <code>isEqualToDate:</code>, and less to do with the <code>earlierDate:</code> call.</p>