rowlandsfc
Active member
as the title says imtryign to calculate the number of days between 2 dates, now this is where im at atm and this works ok so far, but this results with 365.75 but if i change the difference to int as i just want whole number i get a conversion error on span.totaldays
what ive got:
DateTime start = new DateTime(2020, 03, 13);
DateTime end = DateTime.Now;
TimeSpan span = end - start;
double difference = span.TotalDays;
Last edited: