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


## __init__ {#DateTime}

Initializes a new instance of the [`XmpDate`](/cad/python-net/aspose.cad.xmp.types.basic/xmpdate) class.



```python
def __init__(self, date_time):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| date_time | DateTime | A date-time value which is represented using a subset of ISO RFC 8601 formatting. |


## __init__ {#str}

Initializes a new instance of the [`XmpDate`](/cad/python-net/aspose.cad.xmp.types.basic/xmpdate) class.



```python
def __init__(self, date_string):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| date_string | str | The string representation of date. |
### Exceptions
| Exception | Description |
| :- | :- |
| ArgumentException | Invalid date format;date |





### See Also
* module [`aspose.cad.xmp.types.basic`](../../)
* class [`XmpDate`](/cad/python-net/aspose.cad.xmp.types.basic/xmpdate)
