> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ExpirationDate Method of the License Object

This method returns the date at which the license will stop working if the license has an absolute or relative time limitation.

## Syntax

```vb Visual Basic .NET theme={null}
Method ExpirationDate(
  year     As Integer,
  month    As Integer,
  day      As Integer
) As Boolean
```

```cpp C++ theme={null}
HRESULT ExpirationDate(
  int*          year,
  int*          month,
  int*          day,
  VARIANT_BOOL* hasTimeLimitation
);
```

## Parameters

**year**

\[out] Receives the year of the expiration or 0 if no time limitation is used.

**month**

\[out] Receives the month of the expiration or 0 if no time limitation is used.

**day**

\[out] Receives the day of the expiration or 0 if no time limitation is used.

**hasTimeLimitation**

\[out, retval] Specifies whether a time limitation is used.

## Return values

This method has no specific return values. It returns [standard return values of ABBYY FlexiCapture SDK functions](https://docs.abbyy.com/flexi-capture/sdk/api-reference/errorcodes.md).

## See also

[**License**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/license.md)

[**IEngine::SetCurrentLicense**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/engine-setcurrentlicense.md)
