I have a textbox with the Text property bound to a dataset column with the DataType set to System.DateTime.
The FormatString on the Binding is set to dd-MM-yyyy.
When the user enters a date it attempts to convert it to a date but can come up with some strange values for a seemingly invalid date.
For example:
textBox1.Text = "01-02-200";
Should be an invalid date but it formats it as 01-02-0200.
Is there an easy way to catch these out-of-bounds values either through setting a valid range or overriding an event on the binding/textbox?