Here you can find the source of convertXMLGregorianCalendarToDate(XMLGregorianCalendar xmlGregorianCalendar)
public static Date convertXMLGregorianCalendarToDate(XMLGregorianCalendar xmlGregorianCalendar)
//package com.java2s; import javax.xml.datatype.XMLGregorianCalendar; import java.util.Date; public class Main { public static Date convertXMLGregorianCalendarToDate(XMLGregorianCalendar xmlGregorianCalendar) { return xmlGregorianCalendar.toGregorianCalendar().getTime(); }/* w ww. ja v a2 s. c o m*/ }