Get 1st day of current week

Hi @Joey666

It is also possible to use a String Manipulation “java hack” to return the date for Monday of the current week:

string(
		java.time.LocalDate.now().minusDays(
			java.time.LocalDate.now().getDayOfWeek().getValue() - 1
	     )
	
)

This works by subtracting the current day number (minus 1) from the current date. Monday = 1, Sunday =7, so current date minus (day number - 1 ) is the date of Monday.

2 Likes