hi ,
you can use this method :
DateTime GenererateRandomDate()
{
int year = rnd.Next(1900, 9999);
int month = rnd.Next(1, 12);
int day = DateTime.DaysInMonth(year,month);
int Day = rnd.Next(1, day);
DateTime dt = new DateTime(year,month,Day);
return dt;
}
this will generate you 1 date , you can store the returns date in a list and then show the list date in the textbox. Maybe you can use string.join to make them in one string.
Hope this helps