This is my query in mongodb
db.order.find ({\"ublExtensions.ublExtensions.extensionContent.Metadata
.ModificationTime\": \"2012-02-04T01:58:2
Mongodb stores its date objects in a bson format like: {$date: 1329415205151}
If you decide to store it in a string format, then it is the client-side responsibility to filter and process this value as mongo treats it like a string. You can convert your strings to date objects by referring to this other SO question: How do I convert a property in MongoDB from text to date type?
Its been widely recommended to either store all your dates in UTC, or, a consistent timezone possibly related to the local datacenter, and then convert your date values to the proper local timezone on the client.
You can store whatever Date value you want. The value of the date and the format of the date are two separate issues. If your constraints require you to store that string-based date format in the document, it would be recommended to also store a $date object as well at the time of update.