1

i dont have in my collection any date attributes, how can i query something like this:

db.myCol.find(  {
               "DateOf(_id)" : 
                              {"$gt": sometimestamp }
                })

i tried many thing but nothing works, how can i query it?

i have only this attributes:

{ "_id" : ObjectId( "512cd2a0e4b0e3f4bfb06011" ),
  "username" : "test",
  "device_id" : "353918053821035",
  "phone_type" : "GSM",
  "new" : false }
Dima
  • 8,586
  • 4
  • 28
  • 57
  • Give a try: http://stackoverflow.com/questions/7327296/how-do-i-extract-the-created-date-out-of-a-mongo-objectid – gustavohenke Feb 27 '13 at 11:34
  • The above does not work so well in most cases, this answer works better most of the time: http://stackoverflow.com/questions/8749971/can-i-query-mongodb-objectid-by-date – Sammaye Feb 27 '13 at 11:40

0 Answers0