## MapiPropertyContainer.TryGetPropertyDateTime method

Gets the value of a property as a date and time, if the property exists.

```csharp
public bool TryGetPropertyDateTime(long tag, ref DateTime value)
```

| Parameter | Type | Description |
| --- | --- | --- |
| tag | Int64 | The tag of the property. |
| value | DateTime& | When this method returns, the value of the property, if it exists; otherwise, the value is unchanged. |

### Return Value

`true` if the property exists; otherwise, `false`.

### See Also

* class [MapiPropertyContainer](../)
* namespace [Aspose.Email.Mapi](../../mapipropertycontainer/)
* assembly [Aspose.Email](../../../)


