---
title: "XmpDate class"
url: "https://reference.aspose.com/cad/python-net/aspose.cad.xmp.types.basic/xmpdate/"
product: "Aspose.CAD for Python via .NET API References"
---


## XmpDate class

Represents Date in XMP packet.



**Inheritance:** [`XmpDate`](/cad/python-net/aspose.cad.xmp.types.basic/xmpdate) → 
[`XmpTypeBase`](/cad/python-net/aspose.cad.xmp.types/xmptypebase)



The XmpDate type exposes the following members:

### Constructors
| Constructor | Description |
| :- | :- |
| [__init__](/cad/python-net/aspose.cad.xmp.types.basic/xmpdate/__init__/#DateTime) | Initializes a new instance of the [`XmpDate`](/cad/python-net/aspose.cad.xmp.types.basic/xmpdate) class. |
| [__init__](/cad/python-net/aspose.cad.xmp.types.basic/xmpdate/__init__/#str) | Initializes a new instance of the [`XmpDate`](/cad/python-net/aspose.cad.xmp.types.basic/xmpdate) class. |


### Properties
| Property | Description |
| :- | :- |
| [value](/cad/python-net/aspose.cad.xmp.types.basic/xmpdate/value) | Gets or sets the date value. |
| [format](/cad/python-net/aspose.cad.xmp.types.basic/xmpdate/format) | Gets the format string for current value. |
| [ISO_8601_FORMAT](/cad/python-net/aspose.cad.xmp.types.basic/xmpdate/iso_8601_format) | The ISO 8601 (roundtrip) format string. |


### Methods
| Method | Description |
| :- | :- |
| [get_xmp_representation](/cad/python-net/aspose.cad.xmp.types.basic/xmpdate/get_xmp_representation/#) | Returns string contained value in XMP format. |



### 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
* module [`aspose.cad.xmp.types.basic`](..)
* class [`XmpDate`](/cad/python-net/aspose.cad.xmp.types.basic/xmpdate)
* class [`XmpTypeBase`](/cad/python-net/aspose.cad.xmp.types/xmptypebase)
