---
title: "System::Security::Cryptography::X509Certificates::X509Certificate2::get_NotBefore method"
url: "https://reference.aspose.com/font/cpp/system.security.cryptography.x509certificates/x509certificate2/get_notbefore/"
product: "Aspose.Font for C++"
description: "System::Security::Cryptography::X509Certificates::X509Certificate2::get_NotBefore method. Gets the local date and time on which a certificate becomes valid in C++."
---

## X509Certificate2::get_NotBefore method


Gets the local date and time on which a certificate becomes valid.

```cpp
DateTime System::Security::Cryptography::X509Certificates::X509Certificate2::get_NotBefore() const
```


### ReturnValue

Date and time.

## See Also

* Class [DateTime](../../../system/datetime/)
* Class [X509Certificate2](../)
* Namespace [System::Security::Cryptography::X509Certificates](../../)
* Library [Aspose.Font for C++](../../../)
