List of usage examples for java.time.temporal TemporalAdjusters lastInMonth
public static TemporalAdjuster lastInMonth(DayOfWeek dayOfWeek)
From source file:Main.java
private static LocalDate thanksgiving(int year) { LocalDate thanksGiving = Year.of(year).atMonth(Month.NOVEMBER).atDay(1) .with(TemporalAdjusters.lastInMonth(DayOfWeek.WEDNESDAY)); return thanksGiving; }