Java XML Date Create xmlDateToDate(XMLGregorianCalendar xmlCalendar)

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

Description

xml Date To Date

License

Apache License

Declaration

public static Date xmlDateToDate(XMLGregorianCalendar xmlCalendar) 

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 xmlDateToDate(XMLGregorianCalendar xmlCalendar) {
        GregorianCalendar calendar = xmlCalendar.toGregorianCalendar();
        return calendar.getTime();
    }// w  w w.  ja v  a  2  s.com
}

Related

  1. toXMLGregorianCalendar(long timestamp)
  2. toXMLGregorianCalendar(String stringTypeDate)
  3. toXMLGregorianCalendar(Timestamp timestamp)
  4. xmlCalendarToCalendar(XMLGregorianCalendar cal)
  5. xmlCalendarToCalendar(XMLGregorianCalendar xmlCalendar)
  6. xmlDateToLong(String s)
  7. xmlGCtoMillis(XMLGregorianCalendar gc)
  8. xmlGregorian2Gregorian(XMLGregorianCalendar xmlGC)
  9. xmlGregorianCalendar()