title: seletc date query using prepared statement
body: <p>In the database same date is multiple time there. The table data contain date with time if I use this it is not giving the record that I need to modify. I want <code>2012-11-21</code> this date all records. But <code>token_gen_time</code> it contains <code>2012-11-21 1:00:00</code>. How can I write query to select depending on date.</p>
  
  <pre><code>SELECT * FROM mias_log
  where activity_status='Token Generated' 
  AND token_gen_time='2012-11-21 '
  </code></pre>