Answers for "xmlgregoriancalendar to localdatetime java"

1

LocalDateTime to XMLGregorianCalendar

LocalDateTime localDatetime = LocalDateTime.now();
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss");

String formattedDate = localDatetime.format(formatter);
XMLGregorianCalendar calendar = DatatypeFactory.newInstance().newXMLGregorianCalendar(formattedDate);
Posted by: Guest on January-06-2021

Code answers related to "xmlgregoriancalendar to localdatetime java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language