Is Week Day - CSharp System

CSharp examples for System:DateTime Week

Description

Is Week Day

Demo Code



public class Main{
        public static bool IsWeekDay(this DateTime dt)
        {/*  ww  w  .  j av a2 s.  c o m*/
            int day = (int)dt.DayOfWeek;
            return ((day > 0) && (day < 6));
        }
}

Related Tutorials