Created
July 14, 2015 01:21
-
-
Save Seich/6f913eb77212b37c2fe1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var start = new Date(); | |
start.setHours(0,0,0,0); | |
var end = new Date(); | |
end.setHours(23, 59, 59, 999); | |
return db.query(function(doc, emit) { | |
emit(doc.date); | |
}, { | |
startkey: start, | |
endkey: end, | |
include_docs: true | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment