About mongo date query

JavaScript (MongoDB Shel) uses new ISODate() to convert the string to Date type,
which corresponds to Java using new BasicDBObject("ts", date)
;

Originally, I thought that the toString() generated by BasicDBObject could be used directly for MongoDb's JavaScript Shell , but I found that it is not, at least the built-in function new ISODate cannot be processed in the JSON specification.


https://www.v2ex.com/t/80624    Good

http://blog.csdn.net/longerandlonger/article/details/41409719

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326795696&siteId=291194637
Recommended