I have a database in that there are two column start and end. start and end are in DD.MM.YYYY format.
I have a date which is also in DD.MM.YYYY format. How
Use this below code. It will return number of days between two dates. Date are in format YYYY-MM-DD
YourDatabse database=new YourDatabse (getApplicationContext(), 1);
SQLiteDatabase sqlite=database.getReadableDatabase();
Cursor fetch=sqlite.rawQuery("SELECT julianday('"+date2+"') - julianday('"+date1+"')", null);
fetch.moveToFirst();
sqlite.close();
int noOfDays=fetch.getInt(0);