Is Same Day - CSharp System

CSharp examples for System:DateTime Day

Description

Is Same Day

Demo Code


using System.Globalization;
using System;//  ww  w  . j  a v a  2 s. co  m

public class Main{
        public static bool IsSameDay (this DateTime t, DateTime dt)
		{
			return t.Year == dt.Year && t.Month == dt.Month && t.Day == dt.Day;
		}
}

Related Tutorials