title: Finding Records by Date in Rails Console
body: <p>This is happens on Sqlite. I am probably missing something but I couldn't figure out what exactly.</p>
  
  <p><strong>Console Output</strong></p>
  
  <pre><code>&gt;&gt; date = Task.first.date
  =&gt; Tue, 16 Aug 2011
  &gt;&gt; Task.find(:all, :conditions =&gt; {:date =&gt; date})
  =&gt; []
  &gt;&gt; Task.find(:all, :conditions =&gt; ['date = ?', date])
  =&gt; []
  &gt;&gt; Task.find(:all, :conditions =&gt; ['date IS ?', date])
  =&gt; []
  </code></pre>
  
  <p><strong>Schema</strong></p>
  
  <pre><code>create_table "tasks", :force =&gt; true do |t|
    t.date     "date"
  end
  </code></pre>