JsonReader treats Date() and new Date() the same, but in the shell the return different things:
Date() returns a string eg: "Thu Oct 29 2015 14:46:13 GMT+0000 (GMT)"
new Date() returns a date object eg: ISODate("2015-10-29T14:47:08.857Z")
- is related to
-
JAVA-2022 JsonReader does not accept ISODate()
- Closed