Comparing the Date in Android
<p>I am using SQLITE database and I store the date as a String. Now I want to compare both the string as a date. While I am using </p>

<p>String sqlQuery = "SELECT title,edate FROM lookup WHERE" + ((Date)df.parse("?")).getTime() + "&lt;=" + date1.getTime();
    c= db.rawQuery(sqlQuery,new String[]{"edate"});</p>

<p>it is giving error at run time. Please Tell me how can I compare two String as a Date.</p>

<p>Thank You
Deepak</p>
