title: How to force Joda-Time to parse only part of String?
body: <p>let's assume I have following dates (in String):</p>
  
  <pre><code>2009-05-15T23:00:00
  2009-05-15T23:00:00.000Z 
  2009-05-15
  </code></pre>
  
  <p>I don't care about the time and zone, only date is relevant for me. So I want to try to parse it with following pattern:</p>
  
  <p>yyyy-MM-dd</p>
  
  <p>I try to parse it using <a href="http://www.joda.org/joda-time/" rel="nofollow">Joda-Time</a>:</p>
  
  <pre><code>DateTimeFormat = DateTimeFormat.forPattern("yyyy-MM-dd");
  format.withZone(zone).parseDateTime(string).toLocalDate();
  </code></pre>
  
  <p>and I get following exception:</p>
  
  <pre><code>java.lang.IllegalArgumentException: Invalid format: "2009-05-15T23:00:00.000Z" is malformed at "T23:00:00.000Z"
  </code></pre>
  
  <p>Is there a way how to force Joda-Time to ignore rest of the string?</p>