java 8
import java.time.LocalDate; import java.time.temporal.TemporalAdjusters;
LocalDate date = LocalDate.now().with(TemporalAdjusters.lastDayOfMonth());
System.out.println("Last day of the month:"+date);
No comments:
Post a Comment