Java判断某日期是一周当中的第几天

Calendar cal = Calendar.getInstance();
cal.setTime(new Date());
long whichDay1 = calendar.get(Calendar.DAY_OF_WEEK);

原文地址:https://www.cnblogs.com/fangwr/p/13039305.html