DateFormat df = new SimpleDateFormat("yyyyMMdd");
Date date=null;
try {
date = df.parse("20020730");
} catch (ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
long date1 = date.getTime();
long date_now = new Date().getTime();
System.out.println((date_now - date1)/(1000*60*60*24));
Date date=null;
try {
date = df.parse("20020730");
} catch (ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
long date1 = date.getTime();
long date_now = new Date().getTime();
System.out.println((date_now - date1)/(1000*60*60*24));