# getExpirationDate method

DateTime? getExpirationDate()

Gets the the BioSeal expiration date.

return The BioSeal expiration date. throws BiosealException An error has occurred during Bioseal Library execution.

## Implementation

    DateTime? getExpirationDate() {
      DateTime expirationDate = DateTime();
      var err = biosealSDK.id3Bioseal_GetExpirationDate(_pHandle.value, expirationDate.handle);
      if (err == BiosealError.objectDoesNotExist.value) {
        expirationDate.dispose();
        return null;
      }
      if (err != BiosealError.success.value) {
        expirationDate.dispose();
        throw BiosealException(err);
      }
      return expirationDate;
    }