weekOfWeekBasedYear

fun Date.weekOfWeekBasedYear(settings: WeekSettings): Int
fun DateTime.weekOfWeekBasedYear(settings: WeekSettings): Int
fun OffsetDateTime.weekOfWeekBasedYear(settings: WeekSettings): Int
fun ZonedDateTime.weekOfWeekBasedYear(settings: WeekSettings): Int

The week number of the week-based year, calculated using the week definition in settings.

See also

fun Date.weekOfWeekBasedYear(locale: Locale): Int
fun DateTime.weekOfWeekBasedYear(locale: Locale): Int
fun OffsetDateTime.weekOfWeekBasedYear(locale: Locale): Int
fun ZonedDateTime.weekOfWeekBasedYear(locale: Locale): Int

The week number of the week-based year, calculated using the week definition associated with the provided locale.

Keep in mind that 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.

See also

val Date.weekOfWeekBasedYear: Int
val DateTime.weekOfWeekBasedYear: Int
val OffsetDateTime.weekOfWeekBasedYear: Int
val ZonedDateTime.weekOfWeekBasedYear: Int

The week number used in the ISO week date system.

See also