XmpDate
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.metadata.core.PropertyValue, com.groupdocs.metadata.core.XmpValueBase
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
| Constructor | Description |
|---|---|
| XmpDate(Date dateTime) | Initializes a new instance of the XmpDate class. |
| XmpDate(String dateString) | Initializes a new instance of the XmpDate class. |
| Field | Description |
|---|---|
| Iso8601Format | The ISO 8601 (roundtrip) format string. |
| Method | Description |
|---|---|
| getValue() | Gets the value. |
| getFormat() | Gets format string for current value. |
| getXmpRepresentation() | Returns string contained value in XMP format. |
public XmpDate(Date dateTime)
Initializes a new instance of the XmpDate class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| dateTime | java.util.Date | DateTime value. |
public XmpDate(String dateString)
Initializes a new instance of the XmpDate class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| dateString | java.lang.String | Date in string representation. |
public static final String Iso8601Format
The ISO 8601 (roundtrip) format string.
See more: https://en.wikipedia.org/wiki/ISO_8601.
public final Date getValue()
Gets the value.
Returns: java.util.Date - DateTime value.
public final String getFormat()
Gets format string for current value.
Returns: java.lang.String - XMP date format string.
public String getXmpRepresentation()
Returns string contained value in XMP format.
Returns: java.lang.String - string contained XMP representation.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.