Java Utililty Methods ZonedDateTime to LocalDateTime

List of utility methods to do ZonedDateTime to LocalDateTime

Description

The list of methods to do ZonedDateTime to LocalDateTime are organized into topic(s).

Method

LocalDateTimetoUtcLocalDateTime(ZonedDateTime zonedDateTime)
to Utc Local Date Time
return zonedDateTime.withZoneSameInstant(ZoneOffset.UTC).toLocalDateTime();
ZonedDateTimetoUtcZonedDateTime(LocalDateTime localDateTime)
to Utc Zoned Date Time
return localDateTime.atZone(ZoneOffset.UTC);