Forum Stats

  • 3,727,533 Users
  • 2,245,406 Discussions
  • 7,852,848 Comments

Discussions

Find date of this weeks monday using java.time?

2993060
2993060 Member Posts: 6
edited July 2015 in Java 8 Questions

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)

Answers

Sign In or Register to comment.