{"action":"created","issue":{"url":"https://api.github.com/repos/YashdalfTheGray/captains-log/issues/4","repository_url":"https://api.github.com/repos/YashdalfTheGray/captains-log","labels_url":"https://api.github.com/repos/YashdalfTheGray/captains-log/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/YashdalfTheGray/captains-log/issues/4/comments","events_url":"https://api.github.com/repos/YashdalfTheGray/captains-log/issues/4/events","html_url":"https://github.com/YashdalfTheGray/captains-log/pull/4","id":131220316,"number":4,"title":"Get/Day","user":{"login":"bcbrennecke","id":8965533,"avatar_url":"https://avatars.githubusercontent.com/u/8965533?v=3","gravatar_id":"","url":"https://api.github.com/users/bcbrennecke","html_url":"https://github.com/bcbrennecke","followers_url":"https://api.github.com/users/bcbrennecke/followers","following_url":"https://api.github.com/users/bcbrennecke/following{/other_user}","gists_url":"https://api.github.com/users/bcbrennecke/gists{/gist_id}","starred_url":"https://api.github.com/users/bcbrennecke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcbrennecke/subscriptions","organizations_url":"https://api.github.com/users/bcbrennecke/orgs","repos_url":"https://api.github.com/users/bcbrennecke/repos","events_url":"https://api.github.com/users/bcbrennecke/events{/privacy}","received_events_url":"https://api.github.com/users/bcbrennecke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-04T02:31:26Z","updated_at":"2016-02-04T03:14:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/YashdalfTheGray/captains-log/pulls/4","html_url":"https://github.com/YashdalfTheGray/captains-log/pull/4","diff_url":"https://github.com/YashdalfTheGray/captains-log/pull/4.diff","patch_url":"https://github.com/YashdalfTheGray/captains-log/pull/4.patch"},"body":"@YashdalfTheGray Help!!\r\nThis is very close.  The date comparison won't work right now though and I'm not sure why.  The way it is set up right now, I think it should return the current day's records, but actually it returns no records.  If I play with the <> signs then it returns everything.  \r\nWhat am I missing?"},"comment":{"url":"https://api.github.com/repos/YashdalfTheGray/captains-log/issues/comments/179593456","html_url":"https://github.com/YashdalfTheGray/captains-log/pull/4#issuecomment-179593456","issue_url":"https://api.github.com/repos/YashdalfTheGray/captains-log/issues/4","id":179593456,"user":{"login":"YashdalfTheGray","id":3102848,"avatar_url":"https://avatars.githubusercontent.com/u/3102848?v=3","gravatar_id":"","url":"https://api.github.com/users/YashdalfTheGray","html_url":"https://github.com/YashdalfTheGray","followers_url":"https://api.github.com/users/YashdalfTheGray/followers","following_url":"https://api.github.com/users/YashdalfTheGray/following{/other_user}","gists_url":"https://api.github.com/users/YashdalfTheGray/gists{/gist_id}","starred_url":"https://api.github.com/users/YashdalfTheGray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YashdalfTheGray/subscriptions","organizations_url":"https://api.github.com/users/YashdalfTheGray/orgs","repos_url":"https://api.github.com/users/YashdalfTheGray/repos","events_url":"https://api.github.com/users/YashdalfTheGray/events{/privacy}","received_events_url":"https://api.github.com/users/YashdalfTheGray/received_events","type":"User","site_admin":false},"created_at":"2016-02-04T03:14:08Z","updated_at":"2016-02-04T03:14:08Z","body":"If I'm being totally honest, I actually did not look at how to get documents that fit a particular search from Pouch when we started. I figured that it worked like Mongo and we could use something like `find()` but that's really not the case here. So I've found a plugin called `pouch-find` that the pouch team recommends using. I've pulled it into the build and am doing some preliminary testing to see if it's worth having it. If I think it's worth it (at first glance, it seems a lot simpler), I'll pull it in and leave you a link to the docs. \r\n\r\nI don't wanna stomp all over your code here but I was thinking, there has to be a better way of getting data out of this database and I think that pulling that plugin might be worth it. \r\n\r\nJust by reading your code, it should be returning the right things though. Maybe try to `console.log()` the date coming back from the server and the date that you're comparing to see if that works and maybe `console.log(doc.date > midnight)` to see what happens. "}}