There is no way to tell mongodb (mongoimport) to convert the string "dd / mm / yyyy" to the date type $ during import.
What you can do is change the type after bulk insert. You can run this code in the mongodb (mongo) shell:
db.your-collection-name.find().forEach(function(element){ var parts = element.date.split("/"); element.date = new Date(parts[2], parts[1], parts[0]); db.your-collection-name.save(element); });
source share