XmpDate

XmpDate class

Represents Date in XMP packet.

public sealed class XmpDate : XmpValueBase

Constructors

Name Description
XmpDate(DateTime) Initializes a new instance of the XmpDate class.
XmpDate(string) Initializes a new instance of the XmpDate class.

Properties

Name Description
Format { get; } Gets format string for current value.
RawValue { get; } Gets the raw value.
Type { get; } Gets the MetadataPropertyType.
Value { get; } Gets the value.

Methods

Name Description
AcceptValue(ValueAcceptor) Extracts the property value using a custom ValueAcceptor.
override GetXmpRepresentation() Returns string contained value in XMP format.
ToArray<TElement>() Converts the property value to an array of the specified type.
ToClass<T>() Converts the property value to a reference type.
override ToString() Returns a string that represents the property value.
ToStruct<T>() Converts the property value to a value type.
ToStruct<T>(T) Converts the property value to a value type.

Fields

Name Description
const Iso8601Format The ISO 8601 (roundtrip) format string.

Remarks

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

See Also