I am following the example shown at this link but trying to utilize unobtrusive validation found in .Net 4.5. No matter what I get the validator showing me that the values I have entered are improper. The compare validator works great with the Currency and Numeric input controls so the issue seems to be specific to the DateInput control.
I dug into the actual Microsoft WebUIValidation.js file to try and see what may the issue and it appears they use a couple regular expressions to try and determine whether the date part is the first digits or the last. But for some reason it never matches either regex so the values come back as not valid. The value it retrieves it appears is "2013-08-30-00-00-00" if i edit that value while debugging to remove the trailing zero's then (which I assume are for time?) then the validator works properly.
I dug into the actual Microsoft WebUIValidation.js file to try and see what may the issue and it appears they use a couple regular expressions to try and determine whether the date part is the first digits or the last. But for some reason it never matches either regex so the values come back as not valid. The value it retrieves it appears is "2013-08-30-00-00-00" if i edit that value while debugging to remove the trailing zero's then (which I assume are for time?) then the validator works properly.