---
title: "Class XmpDate"
url: "https://reference.aspose.com/imaging/net/aspose.imaging.xmp.types.basic/xmpdate/"
product: "Aspose.Imaging for .NET API Reference"
description: "Aspose.Imaging.Xmp.Types.Basic.XmpDate class. Represents Date in XMP packet"
---

## XmpDate class

Represents Date in XMP packet.

```csharp
public sealed class XmpDate : XmpTypeBase
```

## Constructors

| Name | Description |
| --- | --- |
| [XmpDate](xmpdate/#constructor)(DateTime) | Initializes a new instance of the `XmpDate` class. |
| [XmpDate](xmpdate/#constructor_1)(string) | Initializes a new instance of the `XmpDate` class. |

## Properties

| Name | Description |
| --- | --- |
| [Format](../../aspose.imaging.xmp.types.basic/xmpdate/format/) { get; } | Gets the format string for current value. |
| [Value](../../aspose.imaging.xmp.types.basic/xmpdate/value/) { get; set; } | Gets or sets the date value. |

## Methods

| Name | Description |
| --- | --- |
| virtual [Clone](../../aspose.imaging.xmp.types/xmptypebase/clone/)() | Clones this instance. |
| override [GetXmpRepresentation](../../aspose.imaging.xmp.types.basic/xmpdate/getxmprepresentation/)() | Returns string contained value in XMP format. |
| override [ToString](../../aspose.imaging.xmp.types/xmptypebase/tostring/)() | Gets this XMP data as string. |

## Fields

| Name | Description |
| --- | --- |
| const [Iso8601Format](../../aspose.imaging.xmp.types.basic/xmpdate/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

* class [XmpTypeBase](../../aspose.imaging.xmp.types/xmptypebase/)
* namespace [Aspose.Imaging.Xmp.Types.Basic](../../aspose.imaging.xmp.types.basic/)
* assembly [Aspose.Imaging](../../)


