---
title: "System::Text::Json::JsonElement::TryGetDateTime method"
url: "https://reference.aspose.com/pdf/cpp/system.text.json/jsonelement/trygetdatetime/"
product: "Aspose.PDF for C++ API Reference"
description: "How to use TryGetDateTime method of System::Text::Json::JsonElement class in C++."
---

## JsonElement::TryGetDateTime method




```cpp
bool System::Text::Json::JsonElement::TryGetDateTime(DateTime &value)
```

## See Also

* Class [DateTime](../../../system/datetime/)
* Class [JsonElement](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
