LocalDateTime ZoneId example

LocalDateTime ZoneId example

LocalDateTime class added in JDK 8 and here it gives date time without time zone in ISO-8601 calendar system and if you want to specify explicitly ZoneId to get the time please see example below:

  • LocalDateTimeEuropeParis.java:

  • Output:

LocalDateTime ZoneId example

  • For more information take look at Oracle API documentation here

Leave a Reply

Your email address will not be published. Required fields are marked *