Is Working Day - CSharp System

CSharp examples for System:DateTime Day

Description

Is Working Day

Demo Code


using System.Web;
using System.Linq;
using System.Collections.Generic;
using System;/*from   w ww  . j  av a2s.c  o m*/

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

Related Tutorials