title: How do I parse "YYYY-MM-DD" with joda time
body: <p>I'm trying to use joda-time to parse a date string of the form <code>YYYY-MM-DD</code>.  I have test code like this:</p>
  
  <pre><code>DateTimeFormatter dateDecoder = DateTimeFormat.forPattern("YYYY-MM-DD");
  DateTime dateTime = dateDecoder.parseDateTime("2005-07-30");
  
  System.out.println(dateTime);
  </code></pre>
  
  <p>Which outputs:</p>
  
  <pre><code>2005-01-30T00:00:00.000Z
  </code></pre>
  
  <p>As you can see, the <code>DateTime</code> object produced is <code>30 Jan 2005</code>, instead of <code>30 July 2005</code>.</p>
  
  <p>Appreciate any help.  I just assumed this would work because it's one of the date formats listed <a href="http://www.w3.org/TR/NOTE-datetime" rel="noreferrer">here</a>.</p>