Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

localdate add months in java

LocalDate date = LocalDate.parse("2020-05-21");
		// Displaying date
System.out.println("Date : "+date);
		// Add 2 months to the date
LocalDate newDate = date.plusMonths(2);
System.out.println("New Date : "+newDate); // 2020-07-21
 
PREVIOUS NEXT
Tagged: #localdate #add #months #java
ADD COMMENT
Topic
Name
9+8 =