Here you can find the source of parseLocalDate(String inPattern, String inDate)
public static LocalDate parseLocalDate(String inPattern, String inDate)
//package com.java2s; //License from project: Open Source License import java.time.LocalDate; import java.time.format.DateTimeFormatter; public class Main { public static LocalDate parseLocalDate(String inPattern, String inDate) { final DateTimeFormatter f = DateTimeFormatter.ofPattern(inPattern); return LocalDate.from(f.parse(inDate)); }//from w w w . j ava 2s .co m }