This question is locked. New answers and comments are not allowed.
I am using a Datepicker control in one of my razor views and applied client side validation on DateTime model property which was assigned to Datepicker.
The problem I am facing is whenever I delete some portion of the date part manually and focus out of the control it is resetting to some value.
Example: If the date is "4/11/2012" and changed manually to "4/11/201" on focus out it is resetting to "12/31/1899" and in the same way when "4/11/2012" changed to "4/11/20" it is resetting to "4/11/2020".
My actual requirement is not to reset to any other value and client validation has to fire.
Can somebody help me in achieving this functionality?