Get the last day of a month in Java
LocalDate now = LocalDate.now(); LocalDate lastDay = now.with(TemporalAdjusters.lastDayOfMonth());
Source: javaf1.com
LocalDate now = LocalDate.now(); LocalDate lastDay = now.with(TemporalAdjusters.lastDayOfMonth());