/// <summary> /// Beginning of week /// </summary> /// <param name="ld"></param> /// <param name="timeZoneOffset"></param> /// <returns></returns> public static LocalDateTime BeginningOfWeek(this LocalDateTime ld, int timeZoneOffset) => ld.FirstDayOfWeek().BeginningOfDay(timeZoneOffset);
/// <summary> /// Gets last day of week /// </summary> /// <param name="ldt"></param> /// <returns></returns> public static LocalDateTime LastDayOfWeek(this LocalDateTime ldt) => ldt.FirstDayOfWeek().AddDays(6);
/// <summary> /// Beginning of week /// </summary> /// <param name="ld"></param> /// <returns></returns> public static LocalDateTime BeginningOfWeek(this LocalDateTime ld) => ld.FirstDayOfWeek().BeginningOfDay();