var startTime = Convert.ToDateTime("2018-02-26");
var endTime = Convert.ToDateTime("2018-03-10");
for (DateTime dt = startTime; dt < endTime; dt = dt.AddDays(1)) {
Response.Write(dt.ToShortDateString() + "<br/>");
}
for (; startTime.CompareTo(endTime) <= 0; startTime = startTime.AddDays(1)) {
Response.Write(startTime.ToShortDateString() + "<br/>");
}