var DateSum = new List<string>();
for (var date = Convert.ToDateTime(input.StartTime); date <= Convert.ToDateTime(input.endTime); date=date.AddDays(1))
{
DateSum.Add(date.ToString("yyyy-MM-dd"));
}
var DateSum = new List<string>();
for (var date = Convert.ToDateTime(input.StartTime); date <= Convert.ToDateTime(input.endTime); date=date.AddDays(1))
{
DateSum.Add(date.ToString("yyyy-MM-dd"));
}