Hi,
I am struggling how to get 1st day of current week. For example, when current date is 2024.03.08, i want to get 1st day of this week, 2024.03.04 (Mon. is the 1st day of the week). Can anyone guide me how to solve it? Thanks a lot
Hi,
I am struggling how to get 1st day of current week. For example, when current date is 2024.03.08, i want to get 1st day of this week, 2024.03.04 (Mon. is the 1st day of the week). Can anyone guide me how to solve it? Thanks a lot
Hello @Joey666
I’ve prepared a workflow with a possible approach to your challenge:
Please let me know if further guidance is needed.
BR
Thank you so much !! It works !
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.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.