title: How do I query for a specific day such as yesterday in Core Data?
body: <p>In plain SQL (in my case: sqlite), I would be able to query for a specific date in a DATE column as follows:</p>
  
  <pre><code>SELECT * FROM table WHERE date(dateColumn) = '2015-01-01'
  </code></pre>
  
  <p>This works because the date() function cuts off the time part of the DATE value.</p>
  
  <p>Can I do something similar with Predicates in Core Data? Or do I have to use something where I determine the start and end of that day and then look for dates between the two date values?</p>