title: Convert String dd/MM/yyyy date into java.sql.date yyyy-MM-dd
body: <p>I am using the below method to do the described conversion. But the <code>java.sql.Date</code> method is deprecated. So, is their any harm in using this method? As the statements below are working fine.</p>
  
  <h2>(Retrieving value of date as string in servlet from session and then storing the date in MySQL.)</h2>
  
  <pre><code>String f33_ = (String) session.getAttribute("sf33");
  </code></pre>
  
  <hr>
  
  <pre><code>java.sql.Date f33 = new java.sql.Date(Integer.parseInt(f33_.substring(6, 10))- 1900, Integer.parseInt(f33_.substring(3, 5))-1,Integer.parseInt(f33_.substring(0, 2))); 
  </code></pre>