BinaryStudio.ClientManager.DomainModel.Infrastructure.DateTimeExtensions.GetStartOfBusinessWeek C# (CSharp) Method

GetStartOfBusinessWeek() public static method

Calculates date of the first workday within the week
public static GetStartOfBusinessWeek ( this dateWithinWeek, DayOfWeek startOfWeek = DayOfWeek.Monday ) : System.DateTime
dateWithinWeek this
startOfWeek DayOfWeek
return System.DateTime
        public static DateTime GetStartOfBusinessWeek(this DateTime dateWithinWeek, DayOfWeek startOfWeek = DayOfWeek.Monday)
        {
            return dateWithinWeek.GetStartOfWeek(startOfWeek);
        }