I was doing bulk insert into MongoDB using NodeJs (native -driver). I have date field in the data. Is there anyway to store the date field as Date
rather than String
?
I have date in dd/mm/yyyy
format. In current scenario I attain the result by iterating through the bulk data converting the date into mm/dd/yyyy
format, then create new Date and save.
Since the iteration takes too much time as amount of Data increases; is there any other method to do it?