代码改变世界

随笔档案-2021年11月29日

java 判断星期几

2021-11-29 09:36 by sunice, 853 阅读, 收藏,
摘要: 1 //判断星期几 2 private String calculateWeekDay(Date weekDate) { 3 Calendar calendar = Calendar.getInstance(); 4 calendar.setTime(weekDate); 5 6 int year 阅读全文