Java XML Date Create toDate(XMLGregorianCalendar xmlCalendar)

Here you can find the source of toDate(XMLGregorianCalendar xmlCalendar)

Description

to Date

License

Open Source License

Parameter

Parameter Description
xmlCalendar a parameter

Declaration

public static Date toDate(XMLGregorianCalendar xmlCalendar) 

Method Source Code

//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;
    }
}

Related

  1. toDate(long date)
  2. toDate(XMLGregorianCalendar cal)
  3. toDate(XMLGregorianCalendar cal)
  4. toDate(XMLGregorianCalendar date)
  5. toDate(XMLGregorianCalendar dateTime)
  6. toDate(XMLGregorianCalendar xmlGregorianCalendar)
  7. toDateTime()
  8. toDateTime(Date date)
  9. toXMLCalendar(Date date)