title: Parsing timestamp with timezone in java?
body: <p>I'm trying to parse a string of format timestamp with timezone obtained from a DB. The String is as follows : </p>
  
  <pre><code>   SimpleDateFormat mdyFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSSSSZ");
  
      SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy"); 
      Date d1 = mdyFormat.parse("2014-04-01 15:19:49.31146+05:30");
  
      String mdx = sdf.format(d1);
  
      System.out.println(mdx);
  </code></pre>
  
  <p>Problem is, I get an error saying :</p>
  
  <pre><code>Exception in thread "main" java.text.ParseException: Unparseable date: "2014-04-01 15:19:49.31146+05:30"
      at java.text.DateFormat.parse(DateFormat.java:357)
      at com.karthik.Timestampvalidate.main(Timestampvalidate.java:31)
  </code></pre>
  
  <p>Does anyone know how to fix this ? </p>