I have a calendar which passes selected dates as strings into a method. Inside this method, I want to generate a list of all the dates starting from the selected start date and
You just need to iterate from start to end, you can do this in a for loop
DateTime start = DateTime.Parse(startDate); DateTime end = DateTime.Parse(endDate); for(DateTime counter = start; counter <= end; counter = counter.AddDays(1)) { calculatedDates.Add(counter); }