title: How to convert any Date time to UTC using ZonedDateTime or Java 8
body: <p>I am trying to convert date <code>06-12-2015 02:10:10 PM</code> from default zone to UTC using <code>ZonedDateTime</code>. </p>
  
  <pre><code>LocalDateTime localDateTime = LocalDateTime.ofInstant(date.toInstant(), ZoneId.systemDefault());
  ZonedDateTime utc = ZonedDateTime.of(localDateTime, ZoneOffset.UTC);
  </code></pre>
  
  <p>but <code>utc</code> returns <code>2015-12-06T14:10:10Z</code> instead of <code>06-12-2015 09:10:10 AM</code></p>
  
  <p>How can I convert date from default zone to UTC? The answer given <a href="https://stackoverflow.com/questions/26142864/how-to-get-utc0-date-in-java8">here</a> convert current time to UTC.</p>