title: converting request.getparameter() result to date
body: <p>I have a jsp page which takes an input type date. In the servlet am using request.getParameter() and SimpleDateFormat to get the date which the user has input.</p>
  
  <p>My problem is i only want to get the day, month and year but i also get the time, meaning when i display back the date i display in this format- Day Name : Month: Day of Month : Time : Year, but i only want to display - Year : Month : Day of Month.</p>
  
  <p>Here is what i have done :</p>
  
  <pre><code>Date startDate=new SimpleDateFormat("yyyy-MM-dd").parse(request.getParameter("startDate")); //get the parameter convert it to a data type Date.
  
  out.println(startDate); //Display the date
  </code></pre>
  
  <p>What seems to be the problem here?</p>
  
  <p>Thank you for your time.</p>