//core/io.islandtime/toWeekDate
toWeekDate¶
common
inline fun <T> Date.toWeekDate(action: (year: Int, week: Int, day: Int) -> T): T
Converts this date to an ISO week date representation.
common
inline fun <T> Date.toWeekDate(settings: WeekSettings, action: (year: Int, week: Int, day: Int) -> T): T
Converts this date to a week date representation using the week definition in settings.
common
inline fun <T> Date.toWeekDate(locale: Locale, action: (year: Int, week: Int, day: Int) -> T): T
Converts this date to a week date representation using the week definition associated with the provided locale.
Keep in mind that the system's calendar settings may differ from that of the default locale on some platforms. To respect the system calendar settings, use WeekSettings.systemDefault instead.