Java tutorial
import java.sql.Date; import java.time.LocalDate; public class Main { public static void main(String[] args) { System.out.println(convertToEntityAttribute(Date.valueOf("2000-01-12"))); } public static LocalDate convertToEntityAttribute(Date date) { return date.toLocalDate(); } }