Label Date Result

Defined in framework ScanditLabelCapture

LabelDateResult
open class LabelDateResult : NSObject

Added in version 7.1.0

Represents the result of parsing a date from captured text using a LabelDateFormat. Contains the individual date components (day, month, year) in both numeric and string formats.

This class is returned when date text fields are successfully parsed according to the configured date format patterns.

day
open var day: Int { get }

Added in version 7.1.0

The parsed day, starting on 1. If the parsing fails, -1 is returned.

month
open var month: Int { get }

Added in version 7.1.0

The parsed month, starting on 1 for January. If the parsing fails, -1 is returned.

year
open var year: Int { get }

Added in version 7.1.0

The parsed year, starting on 1. If the parsing fails, -1 is returned.

dayString
open var dayString: String { get }

Added in version 7.1.0

The day in String form.

monthString
open var monthString: String { get }

Added in version 7.1.0

The month in String form.

yearString
open var yearString: String { get }

Added in version 7.1.0

The year in String form.