计算两个日期之间的天数
//实例化
Calendar c = Calendar.getInstance();
//输入时间
c.set(1988,Calendar.JULY,14,13,25,60);
//获取日期实例的毫秒数
long ss = c.getTimeInMillis();
//获取当前时间的毫秒数,或者根据上面三行再输入一个日期
long aa = System.currentTimeMillis();
long ok = aa - ss;
//获取一天有多少毫秒
long day = 1000 * 60 * 60 * 24;
long days = ok/day;
System.out.printf("从%tY年%<tm月%<td日到%tY年%<tm月%<td日,过了%d%n天。",ss,aa,days);