Here you can find the source of formatToIsoLocalDate(LocalDate date)
public static String formatToIsoLocalDate(LocalDate date)
//package com.java2s; //License from project: Open Source License import java.time.LocalDate; import java.time.format.DateTimeFormatter; public class Main { public static final DateTimeFormatter ISO_DATE_FORMATTER = DateTimeFormatter.ISO_LOCAL_DATE; public static String formatToIsoLocalDate(LocalDate date) { return ISO_DATE_FORMATTER.format(date); }// w w w . j a v a 2s . c o m }