com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class XmpDate

  • All Implemented Interfaces:
    IXmpType


    public final class XmpDate
    extends XmpTypeBase

    Represents Date in XMP packet.


    A date-time value is represented using a subset of the formats as defined in Date and Time Formats: YYYY YYYY-MM YYYY-MM-DD YYYY-MM-DDThh:mmTZD YYYY-MM-DDThh:mm:ssTZD YYYY-MM-DDThh:mm:ss.sTZD

    • Field Detail

      • Iso8601Format

        public static final String Iso8601Format

        The ISO 8601 (roundtrip) format string.


        See more: https://en.wikipedia.org/wiki/ISO_8601.

        See Also:
        Constant Field Values
    • Constructor Detail

      • XmpDate

        public XmpDate(Date dateTime)

        Initializes a new instance of the XmpDate class.

        Parameters:
        dateTime - DateTime value.
      • XmpDate

        public XmpDate(String dateString)

        Initializes a new instance of the XmpDate class.

        Parameters:
        dateString - Date in string representation.
        Throws:
        com.aspose.ms.System.ArgumentException - Invalid date format.
    • Method Detail

      • getValue

        public final Date getValue()

        Gets value.

        Returns:
        DateTime value.
      • setValue

        public final void setValue(Date value)

        Sets value.

        Parameters:
        value - DateTime value.
      • getFormat

        public final String getFormat()

        Gets format string for current value.

        Returns:
        XMP date format string.
      • toString

        public String toString()

        Returns a System.String that represents this instance.

        Overrides:
        toString in class XmpValueBase
        Returns:
        A System.String that represents this instance.