Date

fun Date(year: Int, monthNumber: Int, day: Int)

Creates a Date from a year, ISO month number, and day of month.

Parameters

year

the year

monthNumber

the ISO month number, from 1-12

day

the day of the month

Throws

if the year, month, or day is invalid

fun Date(year: Int, month: Month, day: Int)

Creates a Date from a year, month, and day of month.

Parameters

year

the year

month

the month

day

the day of the month