Get WeekNumber


#1

How can i get the week number of the LocalDate?

val formatter: DateTimeFormatter
    get() = DateTimeFormatter.ofPattern("dd.MM.yyyy", Locale.ENGLISH)

val mydate = LocalDate.parse("01.02.2018", formatter)  // I need to get the week-number of this date

#2

Try to get it using https://docs.oracle.com/javase/8/docs/api/java/time/temporal/WeekFields.html