title: Parse svn log -xml date output using SimpleDateFormat
body: <p>The date format of the xml output of the svn log command is like the following.</p>
  
  <pre><code>2014-04-24T08:51:58.213757Z
  </code></pre>
  
  <p>I tried to parse this to a util.Date object using SimpleDateFormat with the following String.</p>
  
  <pre><code>yyyy-MM-ddTHH:mm:ss.SSSSSSZ
  </code></pre>
  
  <p>Complete method</p>
  
  <pre><code>protected Date formatDate(String dateString) {
          //2014-04-24T08:51:58.213757Z
  
          DateFormat format = new SimpleDateFormat("yyyy-MM-ddTHH:mm:ss.SSS");
          format.setTimeZone(TimeZone.getTimeZone("Asia/Colombo"));
          Date date = null;
          int lengthToParse = "yyyy-MM-ddTHH:mm:ss.SSS".length();
  
          try {
              date = format.parse(dateString.substring(0, lengthToParse));
          } catch (ParseException e) {
              e.printStackTrace();
          }
  
          return date;
      }
  </code></pre>
  
  <p>However this gives an error as follows.</p>
  
  <pre><code>java.lang.IllegalArgumentException: Illegal pattern character 'T'
  </code></pre>