Dear all,
I am trying to query a date field and find a data which has a due_date
equals to today.
This is what I did:
Bar.where(:due_date => { "$lt" => Date.end_of_day, "$gt" =>
Date.beginning_of_day } )
But it fetch all the record instead. Would anyone be able to recommend
an approach that works?
Thank you very much in advance for your help.
Kind regards,
Joshua
--
http://twitter.com/scrum8