title: Convert time based on timezone using java.time
body: <p>How to change the time based on timezone in <strong>LocalDateTime</strong>, here i have built a date with Time zone as <em>EST</em>, now i need to find the <em>UTC</em> of the corresponding time. please help me how to solve this</p>
  
  <pre><code>String str = "16Jun2015_153556";
  DateTimeFormatter formatter = DateTimeFormatter.ofPattern("ddMMMyyyy_HHmmss");
  formatter.withZone(ZoneId.of("EST5EDT"));
  LocalDateTime dateTime = LocalDateTime.parse(str, formatter);
  </code></pre>