Answers for "convert java localdate to sql date"

1

convert java date to sql date

public class MainClass {

  public static void main(String[] args) {
    java.util.Date utilDate = new java.util.Date();
    java.sql.Date sqlDate = new java.sql.Date(utilDate.getTime());
    System.out.println("utilDate:" + utilDate);
    System.out.println("sqlDate:" + sqlDate);

  }

}
Posted by: Guest on August-27-2021

Code answers related to "convert java localdate to sql date"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language