title: Unparseable date: "2014-02-24T00:54:12.417-06:00" in java
body: <p>I want to convert date: <code>2014-02-24T00:54:12.417-06:00</code> into IST format.</p>
  
  <p>Till far I did:</p>
  
  <pre><code>    String s = "2014-02-24T00:54:12.417-06:00";
      DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZZZ");
      Date d = formatter.parse(s);
  
  
      TimeZone tx=TimeZone.getTimeZone("Asia/Calcutta");
      formatter.setTimeZone(tx);
      System.out.println("Formatted date in IST = " + formatter.format(d));
      String istDateFormat = formatter.format(d);
      //Date da=formatter.format(d);
      return istDateFormat;  
  </code></pre>
  
  <p>But I am getting error:</p>
  
  <pre><code>Unparseable date: "2014-02-24T00:54:12.417-06:00"  
  </code></pre>