i used the class localDAte in a method like this :
public String dateR(int ageR) {
LocalDate dateR= dateN.plusYears(ageR);
return dateR.toString();
}
and it gives me the date in "yyyy-mm-dd" format however i want it in "dd-mm-yyyy" format
i want the result date in "dd-mm-yyyy" format