My goal is to check if a LocalDate is part of the current week. Similar examples for year and month startDate.month().eq(LocalDate.now().getMonthValue()); startDate.year().eq(LocalDate.now().getYear());
Ex 1 : 10 - Jun - 2021 (current day) is part if the 7 Jun - 13 Jun. Ex 2 : 6 - Jun - 2021 is not part of the current week.