I tried searching the question, but no answer explains the Java 8 way of doing this. Can any body help me out with the same?
The THIRD Friday of December 2016 must be:
LocalDate d = LocalDate.now();
d = d.with(TemporalAdjusters.dayOfWeekInMonth(3, DayOfWeek.FRIDAY));
System.out.println(d); // 2016-12-16
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With