Java XML Date Create XMLGregorianCalendarToDate(XMLGregorianCalendar gc)

Here you can find the source of XMLGregorianCalendarToDate(XMLGregorianCalendar gc)

Description

XML Gregorian Calendar To Date

License

Open Source License

Declaration

public static Date XMLGregorianCalendarToDate(XMLGregorianCalendar gc) 

Method Source Code

//package com.java2s;

import java.util.Date;

import javax.xml.datatype.XMLGregorianCalendar;

public class Main {
    public static Date XMLGregorianCalendarToDate(XMLGregorianCalendar gc) {
        return new Date(gc.toGregorianCalendar().getTimeInMillis());
    }/*  w  w  w.ja  v  a2 s  . c  o m*/
}

Related

  1. xmlGCtoMillis(XMLGregorianCalendar gc)
  2. xmlGregorian2Gregorian(XMLGregorianCalendar xmlGC)
  3. xmlGregorianCalendar()
  4. xmlGregorianCalendarToDate(XMLGregorianCalendar cal)
  5. xmlGregorianCalendarToDate(XMLGregorianCalendar calendar)
  6. xmlGregorianCalendarToTimestamp(XMLGregorianCalendar xgc)
  7. xmlGregorianToString(XMLGregorianCalendar timestamp)
  8. xmlToDate(XMLGregorianCalendar calendar, DateFormat format)
  9. xmlToDateTime(final XMLGregorianCalendar xmlCal)