Java Date Time Java Java API
java.time.ZonedDateTime
public LocalDateTime toLocalDateTime()
package com.logicbig.example.zoneddatetime;import java.time.LocalDateTime;import java.time.ZonedDateTime;public class ToLocalDateTimeExample { public static void main(String... args) { ZonedDateTime d = ZonedDateTime.now(); System.out.println(d); LocalDateTime localDateTime = d.toLocalDateTime(); System.out.println(localDateTime); }}
2017-05-01T16:00:35.091-05:00[America/Chicago]2017-05-01T16:00:35.091