예제 #1
0
 /// <summary>
 /// Returns the date of the last day of the week ending on <paramref name="startOfWeek"/>, which contains <paramref name="date"/>.
 /// </summary>
 /// <param name="date"></param>
 /// <param name="startOfWeek"></param>
 /// <returns></returns>
 public static DateTime EndOfWeek(this DateTime date, DayOfWeek startOfWeek = DayOfWeek.Sunday)
 {
     return(DDRIT.EndOfWeek(date, startOfWeek));
 }