Tags » Substring

mongodb exception: can't convert from BSON type String to Date

Problem: When attempting to do an aggregation on timestamps which are stored as strings, mongodb is unable to do the conversion

repmongo:SECONDARY> db.collection.aggregate(
…     { $match : { "type" : "Review"}}, …

290 more words

substring, reaplacing format

hello i have row of data 1000 records, that i need to replace and substring in the format like below:

i have this format 004320487091 and i need to convert it to 0.432.487.091 any thought any helps please? 13 more words

Recent Questions - Stack Overflow