Here you can find the source of convertToDate(XMLGregorianCalendar date)
Parameter | Description |
---|---|
date | the date to convert |
public static Date convertToDate(XMLGregorianCalendar date)
//package com.java2s; //License from project: Open Source License import java.util.Date; import javax.xml.datatype.XMLGregorianCalendar; public class Main { /**// w w w.j a v a 2 s . c o m * Convert a {@link XMLGregorianCalendar} to a {@link Date}. * * @param date * the date to convert * @return the converted date */ public static Date convertToDate(XMLGregorianCalendar date) { return date.toGregorianCalendar().getTime(); } }