public static int getDaysBetween (String beginDate
{
SimpleDateFormat format = new SimpleDateFormat(
Date bDate = format
Date eDate = format
Calendar d
d
Calendar d
d
int days = d
int y
if (d
{
d
do {
days += d
d
} while (d
}
return days;
}
From:http://tw.wingwit.com/Article/program/Java/hx/201311/25589.html