# getNotAfter method

DateTime getNotAfter()

Gets the the date in local time after which a certificate is no longer valid.

return The date in local time after which a certificate is no longer valid. throws BiosealException An error has occurred during Bioseal Library execution.

## Implementation

    DateTime getNotAfter() {
      DateTime notAfter = DateTime();
      var err = biosealSDK.id3BiosealCertificateInformation_GetNotAfter(_pHandle.value, notAfter.handle);
      if (err != BiosealError.success.value) {
        notAfter.dispose();
        throw BiosealException(err);
      }
      return notAfter;
    }