I need to get the current working week from our current day. Example:
22.11.2022(Tuesday) should return me the dates from 21.11.2022(Monday) - 26.11.2022(Saturday)
27.11.2022(Sunday) should return me the next week: 28.11.2022(Monday) - 03.12.2022(Saturday).
I found this stack overflow question, but in Java(Don't really understand, how to translate it to c#): How to find nearest week day for an arbitrary date?