/// <summary> /// Gets last day of week.<br /> /// 获取一周的最后一天。 /// </summary> /// <param name="ld"></param> /// <returns></returns> public static LocalDate LastDayOfWeek(this LocalDate ld) => ld.FirstDayOfWeek().AddDays(6);