In robomongo when you right clicked on collection name and click Insert documents... new pop up window open and if you insert dates as below and click on save button, then it shows error Unable to parse JSON because of robomongo not understand new Date() function in insert document view. This consider as JSON and {manufactureDate : new Date(2009,8,2)} not a valid JSON format. So Instead of inserting dates using Insert documents... use direct mongo command
Insert date using query for run this query press ( ctrl + enter ) :
In
robomongowhen you right clicked on collection name and clickInsert documents...new pop up window open and if you insertdatesas below and click on save button, then it shows errorUnable to parse JSONbecause ofrobomongonot understandnew Date()function in insert document view. This consider asJSONand{manufactureDate : new Date(2009,8,2)}not a validJSONformat. So Instead of insertingdatesusingInsert documents...use direct mongo commandInsert date using query for run this query press (
ctrl + enter) :This will insert date in
ISODateformat.