I am using the following date method to insert a date in mongo DB:
BasicDBObject Created_Date = new BasicDBObject("date", now);
record.put("Created_Date", now);
It returns the result in below format:
"Created_Date" : ISODate("2017-10-11T06:16:10.536Z")
Is it possible to insert date without time zone i.e.
"Created_Date" :"2017-10-11"
Thanks for any help.