getWeekOfYear

fun LocalDate.getWeekOfYear(locale: Locale = Locale.GERMANY): Int(source)

Returns week of year for this.

For such operation, Locale of country (therefore one must use Locale.GERMANY instead of Locale.GERMAN) is required. The default value is set to Locale.GERMANY since it uses calendar which starts at Monday.