Here you can find the source of toDate(XMLGregorianCalendar cal)
Parameter | Description |
---|---|
cal | der Kalender. |
public static Date toDate(XMLGregorianCalendar cal)
//package com.java2s; //License from project: LGPL import java.util.Date; import javax.xml.datatype.XMLGregorianCalendar; public class Main { /**/*from www . ja v a2s.c o m*/ * Liefert ein Date-Objekt fuer den Kalender. * @param cal der Kalender. * @return das Date-Objekt. */ public static Date toDate(XMLGregorianCalendar cal) { if (cal == null) return null; return cal.toGregorianCalendar().getTime(); } }