Here you can find the source of toDate(XMLGregorianCalendar dateTime)
java.util.Date
equivalent.
Parameter | Description |
---|---|
dateTime | the XML date/time to convert |
public static Date toDate(XMLGregorianCalendar dateTime)
//package com.java2s; //License from project: LGPL import java.util.*; import javax.xml.datatype.*; public class Main { /**//w ww . jav a2 s . c o m * Convert an XML date/time to its <code>java.util.Date</code> equivalent. * * @param dateTime the XML date/time to convert * @return a Java date */ public static Date toDate(XMLGregorianCalendar dateTime) { return dateTime.toGregorianCalendar().getTime(); } }