Q
Q
Qwerty-B2014-07-30 17:26:58
MongoDB
Qwerty-B, 2014-07-30 17:26:58

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 question

Ask a Question

731 491 924 answers to any question