Skip to content

Instantly share code, notes, and snippets.

@lakshmankashyap
Forked from cschlyter/findDatesInRange.js
Created August 17, 2020 13:32
Show Gist options
  • Save lakshmankashyap/e1f3182704718de7288e0a0f1c4bc48a to your computer and use it in GitHub Desktop.
Save lakshmankashyap/e1f3182704718de7288e0a0f1c4bc48a to your computer and use it in GitHub Desktop.
MongoDB: Find dates in a range.
var start = new Date(2013, 5, 4)
var end = new Date(2013, 5, 6)
db.mention_stat.find({"verification": {"$gte": start, "$lt": end}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment