mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-06-16 18:10:13 +08:00
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…
x
Reference in New Issue
Block a user