public String getWeekOfDate(Date date) { String[] weekDaysName = { "周日", "周一", "周二", "周三", "周四", "周五", "周六" }; Calendar calendar = Calendar.getInstance(); calendar.setTime(date); int intWeek = calendar.get(Calendar.DAY_OF_WEEK) - 1; return weekDaysName[intWeek]; }
可以说 非常好用了