标签:cal 返回 bsp 获取 date tin get end int
public int getDayOfWeek(Date date) {
Calendar c = Calendar.getInstance();
c.setTime(date);
int d = c.get(Calendar.DAY_OF_WEEK) - 1;
if (d == 0) {
return 7;
}
return d;
}
标签:cal 返回 bsp 获取 date tin get end int
原文地址:http://www.cnblogs.com/cuijinlong/p/6230245.html