Aqueduct.Extensions.Dates.IsWeekDay C# (CSharp) 메소드

IsWeekDay() 공개 정적인 메소드

Checks to see if the date is a week day (Mon - Fri)
public static IsWeekDay ( this dt ) : bool
dt this The dt.
리턴 bool
        public static bool IsWeekDay(this DateTime dt)
        {
            return (dt.DayOfWeek != DayOfWeek.Saturday && dt.DayOfWeek != DayOfWeek.Sunday);
        }