title: How do I parse RFC 3339 datetimes with Java?
body: <p>I'm trying to parse the date returned as a value from the HTML5 <code>datetime</code> input field. Try it in Opera to see an example. The date returned looks like this: <code>2011-05-03T11:58:01Z</code>.</p>
  
  <p>I'd like to parse that into a Java Date or Calendar Object.</p>
  
  <p>Ideally a solution should have the following things:</p>
  
  <ul>
  <li>No external libraries (jars)</li>
  <li>Handles all acceptable RFC 3339 formats</li>
  <li>A String should be able to be easily validated to see if it is a valid RFC 3339 date</li>
  </ul>