Here you can find the source of getLocalDate(ResultSet res, String name)
public static LocalDate getLocalDate(ResultSet res, String name) throws SQLException
//package com.java2s; //License from project: Open Source License import java.sql.ResultSet; import java.sql.SQLException; import java.time.LocalDate; import java.time.format.DateTimeFormatter; import java.util.Map; public class Main { private static DateTimeFormatter tarmedFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd hh:mm:ss.S"); public static LocalDate getLocalDate(ResultSet res, String name) throws SQLException { return LocalDate.parse(res.getString(name), tarmedFormatter); }//from w w w . j a v a 2s .c o m public static LocalDate getLocalDate(Map<String, String> map, String name) { return LocalDate.parse(map.get(name), tarmedFormatter); } }