Skip to content

Instantly share code, notes, and snippets.

@icaromh
Created July 22, 2016 19:36
Show Gist options
  • Save icaromh/4bdc96c9a119c8fe220b1c1940f6f2db to your computer and use it in GitHub Desktop.
Save icaromh/4bdc96c9a119c8fe220b1c1940f6f2db to your computer and use it in GitHub Desktop.
Parse String Dates to really Date format - MongodB
db.ClockTime.find().forEach(function(doc) {
doc.ClockInTime=new Date(doc.ClockInTime);
db.ClockTime.save(doc);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment