DateTime dt1 = new DateTime(2012, 2, 16); DateTime dt2 = new DateTime(2011, 1, 16); System.TimeSpan span = dt1- dt2; int day = span.Days;