Here you can find the source of toDate(XMLGregorianCalendar xmlCalendar)
Parameter | Description |
---|---|
xmlCalendar | a parameter |
public static Date toDate(XMLGregorianCalendar xmlCalendar)
//package com.java2s; //License from project: Open Source License import java.util.Date; import javax.xml.datatype.XMLGregorianCalendar; public class Main { /**//from ww w . j a v a 2 s.c o m * * @param xmlCalendar * @return */ public static Date toDate(XMLGregorianCalendar xmlCalendar) { Date retObj = null; if (xmlCalendar != null) { xmlCalendar.toGregorianCalendar().getTime(); } return retObj; } }