title: check if the date is before the 5th of feb in iOS objective c
body: <p>how can i check if the date entered by the date picker is before a certain day which is stored as a variable, the year does not matter. </p>
  
  <p>for example, i need to check the date which is picked on the date picker to let me know if its before the 5th of January or after the 5th of January. the result should trigger an IF function if its true.</p>
  
  <pre><code>NSDate * dateOne = [NSDate date];
  NSDate *dt1 = NSDate date];
  
  if([dateOne compare:dateTwo] == NSOrderedAscending) {
      NSLog(@"TRUE");
  }
  </code></pre>