Date Text

Defined under the namespace Scandit.Datacapture.Label

DateText
class DateText : TextField

Added in version 8.0.0

This class is used to define a date field in a LabelDefinition.

labelDateFormat
get labelDateFormat(): LabelDateFormat | null

Added in version 8.0.0

Returns the LabelDateFormat used to parse dates.

name
get name(): string

Added in version 8.0.0

Returns the name associated with this instance.

valueRegexes
get valueRegexes(): string[]

Added in version 8.0.0

The regexes that identify the target string in the scanned content.

isOptional
get isOptional(): boolean

Added in version 8.0.0

Whether the field is optional or mandatory. This is helpful when certain fields may not be present on every scan.

anchorRegexes
get 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).