convert data strings into Date format using ISODate function during the insertion mongo quary to java code :   

      db.collection.find().forEach(function(element){
          element.OrderDate = ISODate(element.OrderDate);
          db.collection.save(element);
        })

Please help to convert this quarry to DBobject type to run in spring boot

