Skip to main content
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

ParameterDescription
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 > Format > Date.
Void DayFormat( DayFormatVariants )See 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 > Language.
Void MaxDate( String )A string in the DD/MM/YYYY format that sets the date. See 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 interval > From.
Void MinQuality( Real )Sets the minimum quality of the hypothesis.
Void MonthFormat( MonthFormatVariants )See Date > Format > Month.
Void Separators( String )See Date > Separators.
Void YearFormat( YearFormatVariants )See Date > Format > Year.
Void AllowedTextRotations( TextRotations )Specifies a set of orientations of the recognized text in which an element search is allowed.
Example for DateFormat: The following code specifies that the date has the MM/DD/YYYY format.
DateFormat: MonthDayYear;
Example for MinDate and MaxDate: The following code specifies that the date lies between January 1, 2000 and December 31, 2004 (the format is irrelevant).
MinDate: "01/01/2000";
MaxDate: "31/12/2004";
Example for MonthFormat: The following code specifies that the month in the date may be written either as a word or as a two-digit number.
MonthFormat: DigitsWithLeadingZeroMonth + WordMonth;
Example for Separators: The following code specifies that numbers in the date may be separated by dots (.) or forward slashes (/).
Separators: "./";