📌  相关文章
📜  java获取一周的第一天-Java代码示例

📅  最后修改于: 2022-03-11 14:52:42.140000             🧑  作者: Mango

代码示例3
private static Date firstDayOfWeek(Date date) {
   Calendar calendar = Calendar.getInstance();
   calendar.setTime(date);
   calendar.set(Calendar.DAY_OF_WEEK, 1);
   return calendar.getTime();
}