// 获取给定年、月的第1天 LocalDate firstDay = LocalDate.of(year, month, 1); // 获取该月的最后1天(https://java2blog.com/last-day-of-month-java) LocalDate lastDay = firstDay.withDayOfMonth( firstDay.getMonth().length(firstDay.isLeapYear()) );
标签:java,第一天,firstDay,month,获取,某月,LocalDate From: https://www.cnblogs.com/aftdxml/p/17399694.html