title: How to convert sql date to java
body: <p>SO i have a table in my database, date declared as date. and now i'm coding in java and i need the DATE to be inputted by the user and store it in my database. how does it work? i mean to convert date in to what? thank you!!</p>
  
  <p>for now this is my code</p>
  
  <pre><code>        java.util.Date utilDate = new java.util.Date();
          java.sql.Date sqldate = new java.sql.Date(utilDate.getTime());
          System.out.print("更新日: ");
          String 更新日 = input.nextLine();
  </code></pre>