Java XML Date Create toDate(XMLGregorianCalendar xmlGregorianCalendar)

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

Description

to Date

License

Apache License

Declaration

public static Date toDate(XMLGregorianCalendar xmlGregorianCalendar) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Date;
import java.util.GregorianCalendar;

import javax.xml.datatype.XMLGregorianCalendar;

public class Main {

    public static Date toDate(XMLGregorianCalendar xmlGregorianCalendar) {
        if (null == xmlGregorianCalendar) {
            return null;
        }/*from   www .  j  a v a  2s. com*/
        GregorianCalendar gregorianCalendar = xmlGregorianCalendar.toGregorianCalendar();
        return gregorianCalendar.getTime();
    }
}

Related

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