title: parse exception in java
body: <p>I am trying to validate a string whether it is in ISO-8601 date or not, but it is throwing a parse exception, not sure where it is going wrong.</p>
  
  <pre><code>try {
      String s = "2007-03-01T13:00:00Z";
      SimpleDateFormat ft = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");
      ft.setLenient(false);
      System.out.println(ft.format(ft.parse(s)));
  } catch (ParseException e) {
      System.out.println(e.getMessage());
  }
  </code></pre>
  
  <p>output is:</p>
  
  <pre><code>Unparseable date: "2007-03-01T10:00:00Z"
  </code></pre>