querying ISODate from unix timestamp in MongoExport querying ISODate from unix timestamp in MongoExport mongodb mongodb

querying ISODate from unix timestamp in MongoExport


Wo, sorry, I've just find the problem.

I tested

  • Date(timestamp in string)
  • ISODate(timestamp in string)
  • ISODate(timestamp in number)

But I didn't test the last ... The right one :

  • Date(timestamp in number)

So the right query is :

db.getCollection('FooBarBarFoo').find({"actKey":"foobar","dt":{$gt:new Date(1434907890000)}})