DateValue

data class DateValue(val year: Int, val month: Int, val day: Int)

A plain calendar date holder used by DatePicker.

Values are stored as simple integers so no date/time library is required. Out-of-range values passed to DatePicker are coerced (e.g. day 31 in a 30-day month is clamped to 30).

Parameters

year

The calendar year (e.g. 2026).

month

The month of the year, 1-based (1 = January .. 12 = December).

day

The day of the month, 1-based.

Constructors

Link copied to clipboard
constructor(year: Int, month: Int, day: Int)

Properties

Link copied to clipboard
val day: Int
Link copied to clipboard
val month: Int
Link copied to clipboard
val year: Int