Skip to content

//core/io.islandtime/startOfWeek

startOfWeek

common

fun Date.startOfWeek(settings: WeekSettings): Date

The date at the start of the week that this date falls in. The first day of the week will be determined by settings.

common

fun Date.startOfWeek(locale: Locale): Date

The date at the start of the week that this date falls in. The first day of the week will be determined by locale.

common

fun DateTime.startOfWeek(settings: WeekSettings): DateTime

The date-time at the first instant of the week that this date-time falls in. The first day of the week will be determined by the system settings. This may differ from the first day of the week associated with the default locale on platforms that allow this to be customized.

common

fun DateTime.startOfWeek(locale: Locale): DateTime

fun OffsetDateTime.startOfWeek(locale: Locale): OffsetDateTime

fun ZonedDateTime.startOfWeek(locale: Locale): ZonedDateTime

The date-time at the first instant of the week that this date-time falls in. The first day of the week will be determined by locale.

common

fun OffsetDateTime.startOfWeek(settings: WeekSettings): OffsetDateTime

fun ZonedDateTime.startOfWeek(settings: WeekSettings): ZonedDateTime

The date-time at the first instant of the week that this date-time falls in. The first day of the week will be determined by the user's system settings. This may differ from the first day of the week associated with the default locale on platforms that allow the user to customize this.

common

val Date.startOfWeek: Date

The date at the start of the ISO week that this date falls in.

The ISO week starts on Monday and ends on Sunday.

common

val DateTime.startOfWeek: DateTime

val OffsetDateTime.startOfWeek: OffsetDateTime

val ZonedDateTime.startOfWeek: ZonedDateTime

The date-time at the first instant of the ISO week that this date-time falls in.

The ISO week starts on Monday and ends on Sunday.