[Solved] I want datetimepicker.mindate < datetimepicker1.value [closed]


Your exception is telling you that have to give dateTimePicker1 a value. Also, the order you do things is important. You can’t set dateTimePicker1’s value to less than the MinDate. That’s the purpose of having a MinDate. You must first modify the MinDate, then set the value.

dateTimePicker1.MinDate = DateTime.Parse(comboBox3.Text); // -> contains a date value converted to string
dateTimePicker1.Value = dateTimePicker1.MinDate 

1

solved I want datetimepicker.mindate < datetimepicker1.value [closed]