Answer the question
In order to leave comments, you need to log in
How to get the start and end date of the previous week?
How can I find the start and end date of the previous week?
Answer the question
In order to leave comments, you need to log in
LocalDate now = LocalDate.now();
LocalDate lastWeekStart = now.minusWeeks(1).with(DayOfWeek.MONDAY);
LocalDate lastWeekEnd = lastWeekStart.plusDays(6);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question