We using the datepicker with input format "dd-mm-yyyy" in our asp.net web application. Created an validator function for this format. Works fine when leaving the input field it checks the format "dd-mm-yyyy" but when we want to save the record our validator function gets the date as "yyyy-mm-dd" which is invalid according to our validator function. What to do.