---
title: "Aspose::Email::Mapi::MapiPropertyContainer::GetPropertyDateTime method"
url: "https://reference.aspose.com/email/cpp/aspose.email.mapi/mapipropertycontainer/getpropertydatetime/"
product: "Aspose.Email for C++"
description: "Gets the value of the property specified by tag as DateTime type."
---


## GetPropertyDateTime {#getpropertydatetime}

Gets the value of the property specified by tag as DateTime type.

**Returns:** The value of the property. If the property does not exist, returns NULL; otherwise, returns the value.

```cpp
GetPropertyDateTime(int64_t key)
```

| Parameter | Description |
| --- | --- |
| key | The MAPI property tag. |

