Get CouchDB Documents that have a start before and an end after a specified time
===

I have a Large set of documents that, among other things, contain a "startDate" and "endDate." My problem is that I am trying to make a view that can take a date and return all documents that have a startDate before as well as an endDate after the specified time. If both timestamps are before or both after the specified time, I don't want them to be returned.

Thanks!