I have two DateTimes, and I want to get all DateTimes between these Dates. Such as, if my Dates are like 01.01.2010 - 05.01.2010, my function shoul
DateTime
static IEnumerable GetAllDatesAndInitializeTickets(DateTime startingDate, DateTime endingDate) { List allDates = new List(); for (DateTime i = startingDate; i <= endingDate; i = i.AddDays(1)) { allDates.Add(i); } return allDates.AsReadOnly(); }