Is Business Day - CSharp System

CSharp examples for System:DateTime Day

Description

Is Business Day

Demo Code


using System;/*from   w ww. ja v  a2 s  .com*/

public class Main{
        public static bool IsBusinessDay(this DateTime date)
        {
            return
                date.DayOfWeek != DayOfWeek.Saturday &&
                date.DayOfWeek != DayOfWeek.Sunday;
        }
}

Related Tutorials