Expiry Date Text
Defined under the namespace Scandit.Datacapture.Label
- ExpiryDateText
class ExpiryDateText : TextField
Added in version 8.0.0
A specialized text field for capturing expiry dates. This predefined field type is optimized for recognizing date formats commonly found on product labels, packaging, and documents.
The field can be configured with specific date formats using LabelDateFormat to ensure proper parsing of various date representations (MM/dd/yyyy, dd.MM.yyyy, etc.).
- constructor(name)
constructor(name: string)
Added in version 8.0.0
Builds a new instance of this class with the provided name.
- anchorRegexes
anchorRegexes: string[]
Added in version 8.0.0
Used to specify keywords or phrases that help identify the context of the field. This is particularly useful when the label contains multiple fields that could match the same regex (e.g., when both packaging and expiry dates are present).
- labelDateFormat
labelDateFormat: LabelDateFormat | null
Added in version 8.0.0
Used to get and set the LabelDateFormat used to parse dates.