Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. for (x <- collection.findOne(MongoDBObject("_id"-> new ObjectId("58d2cfe5fbb1bb15209d3b02")))) println(x)
  2.  
  3. val q_date = "ISODATE(" + "2017-01-26T07:00:00.000Z" + ")"
  4. for (x <- collection.findOne(MongoDBObject("db_date"-> q_date))) println(x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement