fromWeekDate

fun Date.Companion.fromWeekDate(year: Int, week: Int, day: Int): Date

Creates a Date from an ISO week date.

Parameters

year

the week-based year

week

the week number of the week-based year

day

the ISO day of week number, 1 (Monday) to 7 (Sunday)

Throws

if the year, week, or day is invalid

fun Date.Companion.fromWeekDate(year: Int, week: Int, day: Int, settings: WeekSettings): Date

Creates a Date from a week date representation using the week definition in settings.

Parameters

year

the week-based year

week

the week number of the week-based year

day

the day of week number, 1-7

settings

the week definition to use when interpreting the year, week, and day

fun Date.Companion.fromWeekDate(year: Int, week: Int, day: Int, locale: Locale): Date

Creates a Date from a week date representation using the week definition associated with the provided locale.

Parameters

year

the week-based year

week

the week number of the week-based year

day

the day of week number, 1-7

locale

the locale providing the week definition to use when interpreting the year, week, and day