title: NSPredicate for range between two dates is not working as expected
body: <p>I have these two <code>NSDate</code>s:</p>
  
  <pre><code>NSDateFormatter *df = [[NSDateFormatter alloc] init];
  [df setDateFormat:@"MM/dd/yyyy"];
  NSDate *rangeStart = [df dateFromString: @"03/03/2013"];
  NSDate *rangeEnd = [df dateFromString: @"10/04/2013"];
  </code></pre>
  
  <p>And this predicate:</p>
  
  <pre><code>request.predicate = [NSPredicate predicateWithFormat:@"createdDate &gt;= %@ AND createdDate &lt;= %@", rangeStart, rangeEnd];
  </code></pre>
  
  <p>But even though the second part of the predicate specifically uses a <code>&lt;=</code> it is returning objects up until the day before (that is <code>10/03/2013</code>).</p>
  
  <p>I also tried constructing the predicate like this:</p>
  
  <pre><code>NSPredicate *dateStartPredicate = [NSPredicate predicateWithFormat:@"createdDate &gt;= %@", rangeStart];
  NSPredicate *dateEndPredicate = [NSPredicate predicateWithFormat:@"createdDate &lt;= %@", rangeEnd];
  NSPredicate *finalPredicate = [NSCompoundPredicate andPredicateWithSubpredicates:[NSArray arrayWithObjects:dateStartPredicate, dateEndPredicate, nil]]; 
  </code></pre>
  
  <p>But I'm getting the same results. Am I doing something wrong? Is this actually the expected behavior? If it is, how can set the <code>rangeEnd</code> to the next day?</p>
  
  <p>Thanks</p>