Code example for XMLGregorianCalendar

Methods: toGregorianCalendar

     * Transform a XmlGregorianCalendar date into a java.util.Date format. 
     * @param gregorianCalendar the date to be trasnformed 
     * @return the date transformed 
    public static Date transformIntoDate(final XMLGregorianCalendar gregorianCalendar){
        Assert.notNull(gregorianCalendar, "Try to provide some gregorianCalendar param to convert into java.util.Date");
        return gregorianCalendar.toGregorianCalendar().getTime();
Connect your IDE to all the code out there  Get Codota for Java