commit
0af6c51134
|
|
@ -934,7 +934,7 @@ public void getDayNew() {
|
|||
//当年最后一天
|
||||
LocalDate lastday = today.with(TemporalAdjusters.lastDayOfYear());
|
||||
//2021年最后一个周日,如果用Calendar是不得烦死。
|
||||
LocalDate lastMondayOf2021 = LocalDate.parse("2021-12- 31").with(TemporalAdjusters.lastInMonth(DayOfWeek.SUNDAY));
|
||||
LocalDate lastMondayOf2021 = LocalDate.parse("2021-12-31").with(TemporalAdjusters.lastInMonth(DayOfWeek.SUNDAY));
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue