title: Converting a String of a Date to a Date
body: <p>I'm having troubles converting a String of a date entered by a user to an actual Date that can be sent to a database.</p>
  
  <p>Ultimately the user enters a date in the format of YYYY-MM-DD and it gets sent to the database. I'm trying this:</p>
  
  <pre><code>String date = "2015-03-02";
  SimpleDateFormat sdf = new SimpleDateFormat("YYYY-MM-DD");
  Date parsedDate = sdf.parse(date);
  </code></pre>
  
  <p>this is all it outputs</p>
  
  <pre><code>Sun Dec 28 00:00:00 CST 2014
  </code></pre>