Java XML Date to convertXmlGregCalToDate(XMLGregorianCalendar xmlCal)

Here you can find the source of convertXmlGregCalToDate(XMLGregorianCalendar xmlCal)

Description

convert Xml Greg Cal To Date

License

Apache License

Declaration

public static Date convertXmlGregCalToDate(XMLGregorianCalendar xmlCal) 

Method Source Code

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

import java.util.Date;

import javax.xml.datatype.XMLGregorianCalendar;

public class Main {
    public static Date convertXmlGregCalToDate(XMLGregorianCalendar xmlCal) {
        if (xmlCal == null) {
            return null;
        }/*from   www.  ja v a 2 s  .  c o  m*/
        return xmlCal.toGregorianCalendar().getTime();
    }
}

Related

  1. convertToDate( final List dates)
  2. convertToDate(XMLGregorianCalendar date)
  3. convertToDateTime(XMLGregorianCalendar calendar)
  4. convertToLocalTime(XMLGregorianCalendar calendar)
  5. convertXmlDateToDate(XMLGregorianCalendar date)
  6. convertXMLGregorianCalendarToDate(final XMLGregorianCalendar calendar)
  7. convertXMLGregorianCalendarToDate(XMLGregorianCalendar xmlGregorianCalendar)
  8. convertXMLGregorianCalendarToDate(XMLGregorianCalendar xmlGregorianCalendar)
  9. ConvertXMLGregorianCalenderToString(XMLGregorianCalendar Calendar, String Format)