how to convert localdate to string in java code example
Example 1: string to localdate in java
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("d/MM/yyyy");
String date = "16/08/2016";
//convert String to LocalDate
LocalDate localDate = LocalDate.parse(date, formatter);
Example 2: localdate to string java
LocalDate today = LocalDate.now();
System.out.println(today.toString());