Answer the question
In order to leave comments, you need to log in
How to get time now (yyyy-mm-dd hh:mm:cc:ccc) in XMLGregorianCalendar?
Good afternoon!
How to get time now (yyyy-mm-dd hh:mm:cc:ccc) in XMLGregorianCalendar?
It can be different but with conversion
Answer the question
In order to leave comments, you need to log in
It is possible like this:
import javax.xml.datatype.DatatypeFactory;
import java.util.GregorianCalendar;
GregorianCalendar calendar = new GregorianCalendar();
DatatypeFactory.newInstance().newXMLGregorianCalendar(calendar);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question