Label Date Format

Defined under the namespace Scandit.Datacapture.Label

LabelDateFormat
class LabelDateFormat

Added in version 7.2.0

Defines the expected format for parsing dates from captured text fields. This class specifies how date components (day, month, year) are ordered and whether partial dates should be accepted during the parsing process.

Used in conjunction with date text fields like ExpiryDateText and PackingDateText to ensure accurate date recognition and parsing.

constructor(componentFormat, acceptPartialDates)
constructor(componentFormat: LabelDateComponentFormat,
        acceptPartialDates: boolean)

Added in version 7.2.0

Constructs an instance of this class with the provided parameters.

componentFormat
get componentFormat(): LabelDateComponentFormat

Added in version 7.2.0

Holds the expected order for the date components. Defaults to LabelDateComponentFormat.YMD.

acceptPartialDates
get acceptPartialDates(): boolean

Added in version 7.2.0

Whether or not to accept partial dates corresponding to the specified component format. Defaults to true.