core / io.islandtime / Date / <init>

<init>

(iosArm64, iosX64, jvm, macosX64) <init>(year: Int, monthNumber: Int, day: Int)

Create 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) <init>(year: Int, month: Month, day: Int)

Create 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
Create a Date from a year, month, and day of month.