title: ParseException while parsing date from String to date Object
body: <p>I'm getting a <code>ParseException</code> while parsing a date from <code>String</code> to <code>Date</code> object. The date string also contains a timezone. I'm using this code:</p>
  
  <pre><code>final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss z");
  System.out.print(sdf.parse("2018-01-16T00:07:00.000+05:30"));
  </code></pre>
  
  <p>Below is the error I'm getting:</p>
  
  <pre><code>Exception in thread "main" java.text.ParseException: Unparseable date: "2018-01-16T00:07:00.000+05:30"
      at java.text.DateFormat.parse(DateFormat.java:366)
  </code></pre>