public static String getDateDays(String date1,String date2){
String num="";
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
try {
Date d1 = sdf.parse(date1);
Date d2=sdf.parse(date2);
long daysBetween=(d2.getTime()-d1.getTime()+1000000)/(3600*24*1000);
num=daysBetween+"";
} catch (ParseException e) {
e.printStackTrace();
}
return num;
}