My task is to verify if in the given folder there is expected number of files. Every day 3 files is created. For example for current month 29*3 files is expected in the folder.
I am able to get count of the days for the current month by DateTime.DaysInMonth(2024,2), but I have to “hardcode” the month in the mentioned code manualy.
Could somebody advise me, how to get the count of the days in the current month automatically please? I have only few experience in coding yet.