Hallo everyone.
I want to set the day to the validDay.
e.g if valid day is 25 then the day must be 25 on DateTime.
string validDay_str = reader["validation"].ToString();
int validDay = Int32.Parse(validDay_str);
string start_str = reader["start"].ToString();
DateTime start = DateTime.Parse(start_str);
start.Day = validDay;
with this code I get an error, "Property or indexer 'System.DateTime.Day' cannot be assigned to -- it is read only"
I cannot use
start = start.AddDays(validdaye);
because then it will add 25 to the existing day.