This question is locked. New answers and comments are not allowed.
Hi,
I am using DatePicker in my EditorTemplate so every property decorated with DateTime attribute shows DatePicker when user clicks on the field. It works fine and as expected. We have some Date fields in our database which signifies how long is a particular product is valid and we give it a default end date in the future (12/31/2999). Not the best way to do it I know but it's an old system and I can't do much about it now.
The problem I am having is that the DatePicker throws the following exception when it encounters this date.
Specified argument was out of the range of valid values.
I am using DatePicker in my EditorTemplate so every property decorated with DateTime attribute shows DatePicker when user clicks on the field. It works fine and as expected. We have some Date fields in our database which signifies how long is a particular product is valid and we give it a default end date in the future (12/31/2999). Not the best way to do it I know but it's an old system and I can't do much about it now.
The problem I am having is that the DatePicker throws the following exception when it encounters this date.
Specified argument was out of the range of valid values.
Parameter name: Date should be bigger than MinValue and less then MaxValue
Can someone tell me how can I get around this?