1LocalDate now = LocalDate.now();
2
3LocalDate lastFriday = now.with(TemporalAdjusters.lastInMonth(DayOfWeek.FRIDAY));
1Calendar cal = Calendar.getInstance();
2cal.set(year,month-1,day);
3int nd = cal.get(Calendar.DAY_OF_WEEK);
1LocalDate now = LocalDate.now();
2
3LocalDate lastDay = now.with(TemporalAdjusters.lastDayOfMonth());
1Calendar cal = Calendar.getInstance();
2cal.set(Calendar.DATE, cal.getActualMaximum(Calendar.DATE));
3Date lastDayOfMonth = cal.getTime();