Equal Day - CSharp System

CSharp examples for System:DateTime Day

Description

Equal Day

Demo Code


using System.Threading.Tasks;
using System.Text;
using System.Linq;
using System.Collections.Generic;
using System;//from   w  ww.ja va2s .c o  m

public class Main{
        public static bool EqualDay(this DateTime dt, DateTime otherdate)
        {
            return dt.Year.Equals(otherdate.Year) && dt.Month.Equals(otherdate.Month) && dt.Day.Equals(otherdate.Day);
        }
}

Related Tutorials