org.eclipse.emf.ecp.edit.internal.swt.util
Class DateUtil

java.lang.Object
  extended by org.eclipse.emf.ecp.edit.internal.swt.util.DateUtil

public final class DateUtil
extends Object

Helper class for Date conversion.

Author:
Eugen Neufeld

Method Summary
static XMLGregorianCalendar convertOnlyDateToXMLGregorianCalendar(Calendar calendar)
          Convert a Calendar object to an XMLGregorianCalendar (to the XMLCalendar implementation) which contains only the date without the timezone.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

convertOnlyDateToXMLGregorianCalendar

public static XMLGregorianCalendar convertOnlyDateToXMLGregorianCalendar(Calendar calendar)
Convert a Calendar object to an XMLGregorianCalendar (to the XMLCalendar implementation) which contains only the date without the timezone.

Parameters:
calendar - the Calendar to convert
Returns:
the XMLGregorianCalendar containing only the date


Copyright © 2015. All Rights Reserved.