Answer the question
In order to leave comments, you need to log in
Ruby On Rails +MongoDB. How to work with dates?
The collection has entries with Timestamp
"timestamp" : ISODate("2014-06-10T00:00:00Z"),
coll.find(:timestamp=>"ISODate(\"2014-06-10T00:00:00Z\") doesn't return these records (works fine with
_id and other parameters) Tried different date formats but didn't get these records How can I do this? :00Z")}) works fine in the console.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question