0
How do I make a date count, in c #?
c#
2 Respuestas
+ 3
Assuming StartDate and EndDate are of type DateTime:
(EndDate - StartDate).TotalDays
or
DateTime d1 = DateTime.Now; DateTime d2 = DateTime.Now.AddDays(-1); TimeSpan t = d1 - d2; double NrOfDays = t.TotalDays;
0
where to specify the date from which the days will be deducted?