title: Compare string (date) in sqLite DB in iOS
body: <p>I am storing date(in yyyy-MM-dd format) as a string in database.</p>
  
  <p>And now i would like get all the records from the database wherever the date is greater than todays date.</p>
  
  <p>Also i tried to do it using casting,but still didn't work out for me.</p>
  
  <pre><code>SELECT * FROM TableName WHERE CAST(valiDate AS DATETIME) &gt;= ('2103-09-16').
  </code></pre>
  
  <p>Let me know in case i'm doing something wrong here.</p>
  
  <p>Any solution is greatly appreciated.</p>