core / io.islandtime / Date / <init>

<init>

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) <init>(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

Exceptions

DateTimeException - if the year, month, or day is invalid

(iosArm64, iosX64, jvm, macosX64, tvosArm64, tvosX64, watchosArm64, watchosX86) <init>(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

Exceptions

DateTimeException - if the year or day is invalid

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