Calendar date1 = Calendar.getInstance();

// You can set date1 to any date
date1.set(Calendar.MONTH,1);
date1.set(Calendar.YEAR,1980);

Calendar now = Calendar.getInstance();
long numberOfDays = (date1.getTime().getTime() - now.getTime().getTime()) / (1000 * 60 * 60 * 24);