> ## 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

> ExpirationDate method of the License Object in the ABBYY FineReader Engine API — This method returns the date at which the license will stop working if the license has an absolute or relative time limitation.

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

## Syntax

### C++

```cpp theme={null}
HRESULT ExpirationDate(
  int*          Year,
  int*          Month,
  int*          Day,
  VARIANT_BOOL* HasTimeLimitation
);
```

### C\#

```csharp theme={null}
bool ExpirationDate(
  out int Year,
  out int Month,
  out int Day
);
```

### Visual Basic .NET

```vb theme={null}
Function ExpirationDate( _
  ByRef Year As Integer, _
  ByRef Month As Integer, _
  ByRef Day As Integer _
) As Boolean
```

## Parameters

Year

\[out] A pointer to the int variable that receives the year of the expiration or 0 if no time limitation is used.

Month

\[out] A pointer to the int variable that receives the month of the expiration or 0 if no time limitation is used.

Day

\[out] A pointer to the int variable that receives the day of the expiration or 0 if no time limitation is used.

HasTimeLimitation

\[out, retval] A pointer to the bool variable that receives the flag indicating whether a time limitation is used.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## See also

[License](/fine-reader/engine/api-reference/license-related-objects/license)

[IEngine::SetCurrentLicense](/fine-reader/engine/api-reference/engine-object-iengine-interface/supplementary-methods/setcurrentlicense-method)
