title: ParseException when using SimpleDateFormat.parse("yyyy-MM-dd")
body: <p>My code looks as follows:</p>
  
  <pre><code> (new SimpleDateFormat("yyyy-MM-dd")).parse("0000-12-25")
  </code></pre>
  
  <p>This argument is supposed to pass a date object to a constructor, but I get a ParseException. I tried playing around with <code>Locale.US</code> and <code>Locale.ENGLISH</code>, no luck.</p>
  
  <p>Eclipse isn't giving me details on the ParseException, I tried putting the Locale as the second parameter in the SimpleDateFormat declaration.</p>
  
  <p>The idea is to get this:</p>
  
  <pre><code> Date parameter = (new SimpleDateFormat("yyyy-MM-dd")).parse("0000-12-25");
  </code></pre>
  
  <p>so I can call a constructor:</p>
  
  <pre><code>NewClass newObject = new NewClass(parameter);
  </code></pre>
  
  <p>but have the parameter creation directly in the constructor call.</p>