1LocalDate date = LocalDate.now();
2TemporalField woy = WeekFields.of(Locale.getDefault()).weekOfWeekBasedYear();
3int weekNumber = date.get(woy);
4
1LocalDate date = ...;
2// Or use a specific locale, or configure your own rules
3WeekFields weekFields = WeekFields.of(Locale.getDefault());
4int weekNumber = date.get(weekFields.weekOfWeekBasedYear());
5