title: Get CouchDB documents that have a start before and an end after a specified time
body: <p>I have a large set of documents that, among other things, contain a <em>"startDate"</em> and <em>"endDate"</em>.</p>
  
  <p>My problem is that I am trying to make a view that can take a date and return all documents that have a <em>startDate</em> before as well as an <em>endDate</em> after the specified time. If both timestamps are before or both after the specified time, I don't want them to be returned.</p>