/// <summary> /// Gets the last day of the month that matches <code>dayOfWeek</code>. /// </summary> /// <param name="year">The year.</param> /// <param name="month">The month.</param> /// <param name="dayOfWeek">The weekday to match.</param> /// <returns>Returns an instance of <see cref="DateTime"/> representing the day.</returns> public static DateTime GetLastWeekdayOfMonth(int year, SocialDateMonth month, DayOfWeek dayOfWeek) { return GetLastWeekdayOfMonth(year, (int) month, dayOfWeek); }
private static DateTime GetDate(int year, SocialDateMonth month, int day) { return new DateTime(year, (int) month, day); }