title: Date Format not accepted in SQl
body: <p>I have Query Like this</p>
  
  <p><strong>Query:</strong></p>
  
  <pre><code>SELECT * FROM attendance_entry WHERE absent_date="Fri Feb 20 00:00:00 IST 2015";
  </code></pre>
  
  <p>In Mysql absent_date is in these format(yyyy-mm-dd).</p>
  
  <p>When I am using Hiberante Criteria it accepts. How to write Query?</p>