Here you can find the source of getDate(XMLGregorianCalendar calendar)
Parameter | Description |
---|---|
createdFromDate | a parameter |
public static Date getDate(XMLGregorianCalendar calendar)
//package com.java2s; /*// w w w. j a v a 2 s .c o m * Copyright 2012 Ixonos Plc, Finland. All rights reserved. * Copyright 2012 Arcusys Oy, Finland. All rights reserved. * * This file is part of Kohti kumppanuutta. * * This file is licensed under GNU LGPL version 3. * Please see the 'license.txt' file in the root directory of the package you received. * If you did not receive a license, please contact the copyright holders (http://www.ixonos.com/, http://www.arcusys.fi/). * */ import java.util.Date; import javax.xml.datatype.XMLGregorianCalendar; public class Main { /** * @param createdFromDate * @return */ public static Date getDate(XMLGregorianCalendar calendar) { if (calendar == null) { return null; } return calendar.toGregorianCalendar().getTime(); } }