How do I convert a property in MongoDB from text to date type?

Posted by Jeff Fritz on Stack Overflow See other posts from Stack Overflow or by Jeff Fritz
Published on 2010-05-24T22:06:33Z Indexed on 2010/05/24 22:11 UTC
Read the original article Hit count: 184

Filed under:

In MongoDB, I have a document with a field called "ClockInTime" that was imported from CSV as a string.

What does an appropriate db.ClockTime.update() statement look like to convert these text based values to a date datatype?

© Stack Overflow or respective owner

Related posts about mongodb