title: Deprecated Date methods in Java?
body: <p>What is really meant when using Java Date utilities and something has been deprecated. Does this mean that it is discouraged to use, or does it imply that it is forbidden?</p>
  
  <p>I am guessing it is bad practice to use deprecated methods, but am not sure and wanted to find out.</p>
  
  <p>For example, I am trying to use code such as the following</p>
  
  <pre><code>String date = request.getParameter("date"); 
  model.setDate(new Date(date));
  </code></pre>
  
  <p>Of course...this is a high level example, but in this situation, my model uses type <b> Date </b> and I need to pull the date off the request as a String and create a date with it.</p>
  
  <p>It works fine how I have it, but it is using a deprecated method.</p>
  
  <p><b>EDIT - I have gone back and used <br></p>
  
  <pre>
  SimpleDateFormat formatter = new SimpleDateFormat(); <br>
  model.setDate(formatter.parse(request.getParameter("date");</b>
  </pre>
  
  <p><br>
  <br>
  The date is in the format MM/DD/YYY like 07/23/2010 but I am getting a <b>ParseException</b></p>
  
  <p>What could this be from?</p>