Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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();
    }

}