title: Swift filter by NSDate object property
body: <p>I would like to filter my custom objects with a date property.</p>
  
  <p>For example:</p>
  
  <pre><code>class Event
  {
      let dateFrom: NSDate!
      let dateTo: NSDate!
  
      init(dateFrom: NSDate, dateTo: NSDate) {
          self.dateFrom = dateFrom
          self.dateTo = dateTo
      }
  }
  </code></pre>
  
  <p>Now i have a List of maybe 500 Events, and i just want to show the Events for a specific date. I could loop through all Objects, and create a new Array of Objects, but could i also use a filter?</p>
  
  <p>Ill tried something like this:</p>
  
  <pre><code>let specificEvents = eventList.filter( { return $0.dateFrom &gt; date } )
  </code></pre>
  
  <p>Where date is a NSDate Object for a specific date, but i am not able to use the > operater. </p>
  
  <p>Is there an easy way to get all the events for a specific date, where the date is between the dateFrom and dateTo period?</p>