The Value property is type DateTime, so of course it always has a value. It's up to you to test the value of the Checked property and then use or don't use the Value property. It's not going to magic it for you.
vb.net Code:
If myDateTimePicker.Checked Then 'Use myDateTimePicker.Value here. Else 'Don't use myDateTimePicker.Value. End If




Reply With Quote
