Answers for "string to offsetdatetime java"

0

convert date to offsetdatetime in java

Date date = new Date();
OffsetDateTime offsetDateTime = date.toInstant()
  .atOffset(ZoneOffset.UTC);
Posted by: Guest on September-24-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language