As title, how should I get each Saturdays and Sundays in a given year like 2022, and also show the date of each Saturdays and Sundays? For example: The 1st Saturday is 2022/1/1. The 2nd Saturday is 2022/1/8 ... etc.
To be honest, I'm still the beginner of C#. There are few similar questions in this website; However, they all used class to solve the questions. Is it possible solving the question merely through for-loop, if statement or C# built-in functions (e.g. .AddDays(i) ...)?
Please help me with this. Thanks a million.