FirstMondayOfYear

 public static DateTime FirstMondayOfYear(int ThisYear)
        {
            DateTime firstDay = new DateTime(ThisYear, 1, 1);
            return new DateTime(ThisYear, 1, (8 - (int)firstDay.DayOfWeek) % 7 + 1);
        }
Example:
DateTime mnd = DateExtensions.FirstMondayOfYear(2017);

Description

FirstMondayOfYear

Details

Double click on the code to select all.

 

;