Here you can find the source of changeLocalDateToFormattedString(LocalDate value)
public static String changeLocalDateToFormattedString(LocalDate value)
//package com.java2s; //License from project: Open Source License import java.time.LocalDate; import java.time.format.DateTimeFormatter; public class Main { public static String changeLocalDateToFormattedString(LocalDate value) { if (value == null) return ""; DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd-MM-yyyy"); String formattedString = value.format(formatter); return formattedString; }//from ww w .ja v a 2 s . c om }