title: Parsing a timestamp containg the date, time & offset
body: <p>I'm using using <a href="https://en.wikipedia.org/wiki/Java_version_history#J2SE_5.0_.28September_30.2C_2004.29" rel="nofollow">Java 5</a>.</p>
  
  <p>I need to parse date-time strings in <a href="https://en.wikipedia.org/wiki/ISO_8601" rel="nofollow">ISO 8601</a> format such as <code>2011-11-30T12:00:00.000+00:00</code>:</p>
  
  <pre><code>String dateString = "2011-11-30T12:00:00.000+00:00";
  DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ"); 
  Date parsed=null;
  try {
      parsed = df.parse(dateString);
  }
  </code></pre>
  
  <p>I have also tried this pattern: <code>yyyy-MM-dd'T'HH:mm:ss.SSSz</code>, but get same result: </p>
  
  <pre><code>java.text.ParseException: Unparseable date: "2011-11-30T12:00:00.000+00:00"
  </code></pre>
  
  <p>Any ideas?</p>