1

I got a date YYYY-MM-DD how can I get the Monday date of that date whatever the given date is?

Edited: got the answer from How in Java find dates for previous 2 mondays?.

Community
  • 1
  • 1
Tri Nguyen
  • 1,494
  • 2
  • 16
  • 40
  • 1
    Have you tried anything yet? [This](http://stackoverflow.com/questions/9307884/retrieve-current-weeks-mondays-date) might be helpful. – rmlan Nov 17 '16 at 22:30

1 Answers1

4
LocalDate monday = 
    localDate.with(TemporalAdjusters.previousOrSame(DayOfWeek.MONDAY);
JB Nizet
  • 657,433
  • 87
  • 1,179
  • 1,226