java.util.Date utilDate = new java.util.Date();
      java.sql.Date sqlDate = new java.sql.Date(utilDate.getTime());

      Java language logoJava Date to sql date

      Java and kotlin

      The java.util.Date constructor takes a date as a parameter. The java.sql.Date constructor takes a date as a parameter and converts the time to a SQL date.

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.