I have some documents in CouchDB that contains a value called expire. e.g.:
"expire": "2014-11-23T16:01:00+00:00".
I’m trying create a view that displays all documents between now and X number of days and years until the “expire” value. The X (in days/years) needs to be passed in via the query URL.
I’ve been struggling with this for a while now and any examples/pointers would be much appreciated.
Carlskii
OK I managed to resolve this! The solution was to use the javascript function. e.g.
I can then use this to determine what documents (based on date) get returned by my view.