Advertisement

Udemy WW Udemy WW

Thursday, 3 September 2020

Java code to find last day of the month

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

Advertisement

Udemy WW