Label Date Result

Defined in package com.scandit.datacapture.label.data

LabelDateResult
class LabelDateResult

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
@Nullable Integer getDay()

Added in version 7.1.0

The parsed day, starting on 1. Can be null if the parsing fails.

month
@Nullable Integer getMonth()

Added in version 7.1.0

The parsed month, starting on 1 for January. Can be null if the parsing fails.

year
@Nullable Integer getYear()

Added in version 7.1.0

The parsed year, starting on 1. Can be null if the parsing fails.

dayString
@NonNull String getDayString()

Added in version 7.1.0

The day in String form.

monthString
@NonNull String getMonthString()

Added in version 7.1.0

The month in String form.

yearString
@NonNull String getYearString()

Added in version 7.1.0

The year in String form.