Label Date Format

Defined in framework ScanditLabelCapture

LabelDateFormat
open class LabelDateFormat : NSObject

Added in version 7.1.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.

init
init(componentFormat format: LabelDateComponentFormat, acceptPartialDates: Bool)

Added in version 7.1.0

Constructs an instance of this class with the provided parameters.

componentFormat
open var componentFormat: LabelDateComponentFormat { get }

Added in version 7.1.0

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

acceptPartialDates
open var acceptPartialDates: Bool { get }

Added in version 7.1.0

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