Class XmpDate
Represents Date in XMP packet.
public sealed class XmpDate : XmpTypeBase, IXmpType
- Inheritance
-
XmpDate
- Implements
- Inherited Members
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
Constructors
XmpDate(DateTime)
Initializes a new instance of the XmpDate class.
public XmpDate(DateTime dateTime)
Parameters
dateTime
DateTimeA date-time value which is represented using a subset of ISO RFC 8601 formatting.
XmpDate(string)
Initializes a new instance of the XmpDate class.
public XmpDate(string dateString)
Parameters
dateString
stringThe string representation of date.
Exceptions
- ArgumentException
Invalid date format;date
Fields
Iso8601Format
The ISO 8601 (roundtrip) format string.
public const string Iso8601Format = "yyyy-MM-ddTHH:mm:ssZ"
Field Value
Remarks
See more: https://en.wikipedia.org/wiki/ISO_8601.
Properties
Format
Gets the format string for current value.
public string Format { get; }
Property Value
- string
The format string for current value.
Value
Gets or sets the date value.
public DateTime Value { get; set; }
Property Value
- DateTime
The date value.
Methods
GetXmpRepresentation()
Returns string contained value in XMP format.
public override string GetXmpRepresentation()
Returns
- string
Returns string containing xmp representation