I've been looking arround on stackoverflow, and i couldn't find how can i do the following problem on C#. I need a method that i'll send a int (day of the month), it always return de days of the month from monday to friday of the week the day belong.
For example: Today is 8, and i need that the method returns an array with the following numbers (3, 4, 5, 6, 7).
Or imagine, that even if its 8, i send to this method 19, it returns (17, 18, 19, 20, 21) Corresponding 17 to monday, 18 to tuesday....
I don't have any code, because i don't know how to do it. Hope you can help me!
Thanks a lot!
Edit: instead of just sending the day, imagine i send a simple date format 08/05/2021