title: Date formatter in java 8
body: <p>I have a requirement where i have to store different date and time with time zones.
  I have used ZonedDateTime of java 8 . </p>
  
  <pre><code>ZoneId zoneId = ZoneId.of("US/Eastern");
  ZonedDateTime zt = ZonedDateTime.now(zoneId);
  
  System.out.println(zt.toString());
  </code></pre>
  
  <p>My problem is I want to store this in java.util.Date format.
  I used DateTimeFormatter</p>
  
  <pre><code> DateTimeFormatter dtf=DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ssZ");
  dtf.format(zt);
  </code></pre>
  
  <p>Until here it works fine this gives me the required date in string format now when i try to convert this to java.util.Date using simple date format </p>
  
  <pre><code>SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");
  System.out.println(sdf.parse(dtf.format(zt)));
  </code></pre>
  
  <p>I get output as Sat Mar 12 00:44:10 IST 2016 but i want output as 2016-03-11T14:14:10-05:00 in java.util.Date type. Can somebody suggest where am i going wrong?</p>