Date today = new Date(); Calendar c=Calendar.getInstance(); c.setTime(today); int weekday=c.get(Calendar.DAY_OF_WEEK);
周末:1, 周一:2 ,周二3…… 周六:7