CSharp examples for System:DateTime Day
Equal Day
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); } }