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

# Date

> Detect dates with the Date element in the FlexiLayout language by setting formats, languages, separators, date ranges, and month representations.

The **Date** element supports the following parameters in the FlexiLayout language. Use them to set date formats, languages, separators, date ranges, and month representations.

## Date parameters

| Parameter                                    | Description                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| -------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Void AddLanguage( String )`                 | Adds a language to be used for detecting dates to the list of already specified language(s). The parameter should be a string specifying any of the supported languages: `"English"`, `"Czech"`, `"Danish"`, `"Dutch"`, `"Estonian"`, `"Finnish"`, `"French"`, `"German"`, `"Greek"`, `"Hungarian"`, `"Italian"`, `"Latvian"`, `"Lithuanian"`, `"Norwegian"`, `"Polish"`, `"Portuguese"`, `"Russian"`, `"Spanish"`, `"Swedish"`, `"Turkish"`. |
| `Void DateFormat( DateFormats )`             | See [**Date**](/flexi-capture/fls/template/date) > **Format** > **Date**.                                                                                                                                                                                                                                                                                                                                                                     |
| `Void DayFormat( DayFormatVariants )`        | See [**Date**](/flexi-capture/fls/template/date) > **Format** > **Day**.                                                                                                                                                                                                                                                                                                                                                                      |
| `Void IgnoreAccents( Logic value = true )`   | Specifies whether diacritics should be taken into account when looking for names of months. By default, diacritics are ignored.                                                                                                                                                                                                                                                                                                               |
| `Void Language( String )`                    | See [**Date**](/flexi-capture/fls/template/date) > **Language**.                                                                                                                                                                                                                                                                                                                                                                              |
| `Void MaxDate( String )`                     | A string in the `DD/MM/YYYY` format that sets the date. See [**Date**](/flexi-capture/fls/template/date) > **Date interval** > **To**.                                                                                                                                                                                                                                                                                                        |
| `Void MaxXOutsidePart( Real )`               | Specifies the part of the character that may extend beyond the search area horizontally. The part of the character is specified by a number from `0` to `1`. Characters that have the specified or smaller part outside the search area are included in the hypothesis.                                                                                                                                                                       |
| `Void MaxYOutsidePart( Real )`               | Specifies the part of the character that may extend beyond the search area vertically. The part of the character is specified by a number from `0` to `1`. Characters that have the specified or smaller part outside the search area are included in the hypothesis.                                                                                                                                                                         |
| `Void MaxRelativeGapInLine( Real )`          | The maximum distance between neighboring characters expressed as a percentage of the line height.                                                                                                                                                                                                                                                                                                                                             |
| `Void MinDate( String )`                     | A string in the `DD/MM/YYYY` format that sets the date. See [**Date**](/flexi-capture/fls/template/date) > **Date interval** > **From**.                                                                                                                                                                                                                                                                                                      |
| `Void MinQuality( Real )`                    | Sets the minimum quality of the hypothesis.                                                                                                                                                                                                                                                                                                                                                                                                   |
| `Void MonthFormat( MonthFormatVariants )`    | See [**Date**](/flexi-capture/fls/template/date) > **Format** > **Month**.                                                                                                                                                                                                                                                                                                                                                                    |
| `Void Separators( String )`                  | See [**Date**](/flexi-capture/fls/template/date) > **Separators**.                                                                                                                                                                                                                                                                                                                                                                            |
| `Void YearFormat( YearFormatVariants )`      | See [**Date**](/flexi-capture/fls/template/date) > **Format** > **Year**.                                                                                                                                                                                                                                                                                                                                                                     |
| `Void AllowedTextRotations( TextRotations )` | Specifies a set of orientations of the recognized text in which an element search is allowed.                                                                                                                                                                                                                                                                                                                                                 |

## Date parameter examples

### `DateFormat`

The following code specifies that the date has the `MM/DD/YYYY` format.

```text theme={null}
DateFormat: MonthDayYear;
```

### `MinDate` and `MaxDate`

The following code specifies that the date lies between January 1, 2000 and December 31, 2004 (the format is irrelevant).

```text theme={null}
MinDate: "01/01/2000";
MaxDate: "31/12/2004";
```

### `MonthFormat`

The following code specifies that the month in the date may be written either as a word or as a two-digit number.

```text theme={null}
MonthFormat: DigitsWithLeadingZeroMonth + WordMonth;
```

### `Separators`

The following code specifies that numbers in the date may be separated by dots (`.`) or forward slashes (`/`).

```text theme={null}
Separators: "./";
```
