DateTime StartDate = Convert.ToDateTime(txtDate.Text);
DateTime EndDate = Convert.ToDateTime(TextBox1.Text);
List<DateTime> datetimerange = new List<DateTime>();
while (DateTime.Compare(StartDate, EndDate) <= 0)
{
datetimerange.Add(StartDate);
StartDate = StartDate.AddDays(1);
}
如何显示日期列表并将其显示到列表框?
提前致谢