public final class XmpDate extends XmpValueBase
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
| Modifier and Type | Field and Description |
|---|---|
static String |
Iso8601Format
The ISO 8601 (roundtrip) format string.
|
| Constructor and Description |
|---|
XmpDate(Date dateTime)
Initializes a new instance of the
XmpDate class. |
XmpDate(String dateString)
Initializes a new instance of the
XmpDate class. |
| Modifier and Type | Method and Description |
|---|---|
String |
getFormat()
Gets format string for current value.
|
Date |
getValue()
Gets the value.
|
String |
getXmpRepresentation()
Returns string contained value in XMP format.
|
toStringacceptValue, getEmpty, getRawValue, getType, toArray, toClasspublic static final String Iso8601Format
The ISO 8601 (roundtrip) format string.
public XmpDate(Date dateTime)
Initializes a new instance of the XmpDate class.
dateTime - DateTime value.public XmpDate(String dateString)
Initializes a new instance of the XmpDate class.
dateString - Date in string representation.com.aspose.ms.System.ArgumentException - Invalid date format.public final String getFormat()
Gets format string for current value.
public final Date getValue()
Gets the value.
public String getXmpRepresentation()
Returns string contained value in XMP format.
getXmpRepresentation in interface IXmpTypegetXmpRepresentation in class XmpValueBasestring contained XMP representation.Copyright © 2026. All rights reserved.