title: Date fiter query in mongoid with rails 3
body: <p>I am using <code>mongodb(Mongoid)</code> and <code>rails 3.</code></p>
  
  <p>I have a field <code>"timestamp": ISODate("2013-02-07T04: 41: 52.773Z").</code></p>
  
  <p>Now i want to search date in range means fromdate and todate variables.</p>
  
  <p>Value of <code>fromdate: "2013-02-01" and todate: "2013-02-08".</code></p>
  
  <p>I am trying using  <code>where(:timestamp.gt =&gt; fromdate, :timestamp.lt =&gt; todate)</code> but not get proper output.</p>
  
  <p>How i can make a query to find data in date range..???</p>