Aug 302010
Here is the syntax for querying a timestamp data type column using MonogoDB.
1: db.collection.find(
2: { $where : "this.timestamp_column > new Date('2010/08/30')"}
3: ).count();
and here is how you can query a timestamp column in MongoDB using a full date (hours, minutes, seconds)
1: db.collection.find({
2: $where : "this.timestamp > new Date('2010/08/30 17:00:00')" }
3: ).count();












