I Search the web and found code like down: ---------------------------------------- > 2. Can one validate date formats form other countries like Germany?
This is a YAV config setting, by example Spain date format is dd-MM-yyyy, so in the second map param of the plugin I can set the YAV settings (see YAV reference): $("#myform").yav({ onError:function(){ $("#errorContainer").append($(".error")); //Append all the error messages $(".error").not($("#errorContainer .error")).remove(); // Remove all the old errors but not in the errorContainer } }, //Yav preferences in a second map object param { DATE_FORMAT: 'dd-MM-yyyy' }); -------------------------------------------------------- But I have a problem.I set the DATE_FORMAT=yyyy-MM-dd so "2007-09-26" is ok,but 2007-9-26 is not OK. set yyyy-M-d,it seems not work