Answers for "find first monday of every month algorithm c#"

C#
0

find first monday of every month algorithm c#

public static IEnumerable<DateTime> AllDatesInMonth(int year, int month)
    {
        int days = DateTime.DaysInMonth(year, month);
        for (int day = 1; day <= days; day++)
        {
            yield return new DateTime(year, month, day);
        }
    }
Posted by: Guest on November-03-2020

Code answers related to "find first monday of every month algorithm c#"

C# Answers by Framework

Browse Popular Code Answers by Language