Created
December 1, 2015 15:40
-
-
Save tsega/7def6dfb8b838fc8a89b to your computer and use it in GitHub Desktop.
How query MongoDB for values between dates
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
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