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,688
  • 3
  • 18
  • 46
  • 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
  • 678,734
  • 91
  • 1,224
  • 1,255