Class Date

    • Method Detail

      • toString

        public String toString()
        Returns a String Object representing this Date value
        Overrides:
        toString in class Object
        Returns:
        return a string representation of the value of this Date object
      • valueOf

        public static Date valueOf​(String stringValue)
                            throws IllegalArgumentException
        Returns a Date instance representing the specified String value
        Parameters:
        stringValue - a String value
        Returns:
        return a Date instance representing stringValue
        Throws:
        IllegalArgumentException - If the stringValue is not a date
      • getXMLGregorianCalendar

        public XMLGregorianCalendar getXMLGregorianCalendar()
        Returns the value of this Date object as an XMLGregorianCalendar
        Returns:
        the XMLGregorianCalendar value of this Date object.
      • isValid

        public static boolean isValid​(XMLGregorianCalendar date)
        check if the specified XMLGregorianCalendar instance is a valid date data type
        Parameters:
        date - the value to be tested
        Returns:
        true if the value of argument is valid for date data type false otherwise