Skip to Main Content

Find date of this weeks monday using java.time?

2993060Jul 24 2015 — edited Jul 27 2015

You find the datum of today using

[code]

   

java.time.LocalDate today = LocalDate.now();

System.out.println ("Today=" + today);

[/code]

This will result in

[code]today=2015-07-24[/code]

Today is a Friday, the fifth day of this week.

How do I get the date of this weeks monday (eg. 2015-07-19)

Comments
Post Details
Added on Jul 24 2015
5 comments
1,042 views