|
1.public int diffDate(Calendar date1, Calendar date2) {
return diffDate(date1.getTime(), date2.getTime());
}
2.public int diffDate(java.util.Date date1, java.util.Date date2) {
return (int) ((date1.getTime()-date2.getTime()) / (24 * 60 * 60 * 1000));
} |
|