Class XmpDate
Namespace: Aspose.Imaging.Xmp.Types.Basic
Assembly: Aspose.Imaging.dll (25.7.0)
Represents Date in XMP packet.
[JsonObject(MemberSerialization.OptIn)]
public sealed class XmpDate : XmpTypeBase, IXmpType, ICloneable
{
}
Inheritance
object ← XmpTypeBase ← XmpDate
Implements
Inherited Members
XmpTypeBase.GetXmpRepresentation() , XmpTypeBase.ToString() , XmpTypeBase.Clone() , object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Remarks
A date-time value is represented using a subset of the formats as defined in Date and Time Formats:YYYYYYYY-MMYYYY-MM-DDYYYY-MM-DDThh:mmTZDYYYY-MM-DDThh:mm:ssTZDYYYY-MM-DDThh:mm:ss.sTZD
Constructors
XmpDate(DateTime)
Initializes a new instance of the Aspose.Imaging.Xmp.Types.Basic.XmpDate class.
public XmpDate(DateTime dateTime)
{
}
Parameters
dateTime
DateTime
A date-time value which is represented using a subset of ISO RFC 8601 formatting.
XmpDate(string)
Initializes a new instance of the Aspose.Imaging.Xmp.Types.Basic.XmpDate class.
public XmpDate(string dateString)
{
}
Parameters
dateString
string
The string representation of date.
Exceptions
Invalid date format;date
Fields
Iso8601Format
The ISO 8601 (roundtrip) format string.
public const string Iso8601Format = "yyyy-MM-dd THH:mm:ss Z";
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
Value
Gets or sets the date value.
[JsonProperty]
public DateTime Value
{
get;
set;
}
Property Value
Methods
GetXmpRepresentation()
Returns string contained value in XMP format.
public override string GetXmpRepresentation()
{
}
Returns
Returns string containing xmp representation