Date: valueOf(String s) : Date « java.sql « Java by API






Date: valueOf(String s)

 

public class Main {

  public static void main(String[] args) {

    String date = "2000-11-01";
    java.sql.Date javaSqlDate = java.sql.Date.valueOf(date);

  }

}

   
  








Related examples in the same category