Java中看今天是星期几,礼拜几
Date today = new Date();
Calendar c=Calendar.getInstance();
c.setTime(today);
int weekday=c.get(Calendar.DAY_OF_WEEK);
周末:1, 周一:2 ,周二3…… 周六:7
Date today = new Date();
Calendar c=Calendar.getInstance();
c.setTime(today);
int weekday=c.get(Calendar.DAY_OF_WEEK);
周末:1, 周一:2 ,周二3…… 周六:7