XmpDate

Inheritance: java.lang.Object, com.aspose.imaging.xmp.types.XmpTypeBase

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

Constructors

ConstructorDescription
XmpDate(Date dateTime)Initializes a new instance of the XmpDate class.
XmpDate(String dateString)Initializes a new instance of the XmpDate class.

Fields

FieldDescription
ISO_8601_FORMATThe ISO 8601 (roundtrip) format string.

Methods

MethodDescription
getValue()Gets or sets the date value.
setValue(Date value)Gets or sets the date value.
getFormat()Gets the format string for current value.
getXmpRepresentation()Returns string contained value in XMP format.

XmpDate(Date dateTime)

public XmpDate(Date dateTime)

Initializes a new instance of the XmpDate class.

Parameters:

ParameterTypeDescription
dateTimejava.util.DateA date-time value which is represented using a subset of ISO RFC 8601 formatting.

XmpDate(String dateString)

public XmpDate(String dateString)

Initializes a new instance of the XmpDate class.

Parameters:

ParameterTypeDescription
dateStringjava.lang.StringThe string representation of date.

ISO_8601_FORMAT

public static final String ISO_8601_FORMAT

The ISO 8601 (roundtrip) format string.

See more: here .

getValue()

public Date getValue()

Gets or sets the date value.

Value: The date value.

Returns: java.util.Date

setValue(Date value)

public void setValue(Date value)

Gets or sets the date value.

Value: The date value.

Parameters:

ParameterTypeDescription
valuejava.util.Date

getFormat()

public String getFormat()

Gets the format string for current value.

Value: The format string for current value.

Returns: java.lang.String

getXmpRepresentation()

public String getXmpRepresentation()

Returns string contained value in XMP format.

Returns: java.lang.String - Returns string containing xmp representation