I have a folowing code for getting records from a datbase in ascending order public Cursor fetchAllRemindersD() {
return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TITLE,
KEY_BODY, KEY_PHONE,KEY_DATE_TIME}, null, null, null, null,KEY_DATE_TIME + " ASC");
}
The dates are stored in string format. What should i do inorder to get the records with dates having either present date or upcoming dates..