Here is how you can convert Java LocalDateTime to ZonedDatime.

Java LocalDateTime store only date time information without any timezone information. You can convert it to a ZonedTime with time zone information.

ZonedDateTime zonedDateTime = localDateTime.atZone(ZoneId.systemDefault())

About the Author

Sadupa Wijeratne

Sadupa Wijeratne is the founder of My Cute Blog. Currently working as a software engineer. Interested about latest technologies and love to learn by experience.

View All Articles