Skip to content

Instantly share code, notes, and snippets.

@tsega
Created December 1, 2015 15:40
Show Gist options
  • Save tsega/7def6dfb8b838fc8a89b to your computer and use it in GitHub Desktop.
Save tsega/7def6dfb8b838fc8a89b to your computer and use it in GitHub Desktop.
How query MongoDB for values between dates
items.find({
created_at: {
$gte:"Mon May 30 18:47:00 +0000 2015",
$lt: "Sun May 30 20:40:36 +0000 2010"
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment