Thanks, that will get me close. I thought maybe the code would go in one of the "" spaces towards the end.
When I post your code exactly it does not validate.
I edited to math the formatting on my date picker and it still will not validate. Is it possible that the format I have used is simply incompatible with WAValidate?
Here is my datepicker
$(function(){
$('#dob').datepicker({
changeMonth: true,
changeYear: true,
maxDate: 0,
yearRange: "-100:+0",
dateFormat: 'M-dd-yy',
onClose: closeDatePicker_dob
});
});
and here is the validation line I tried in addition to your suggestion
$WAFV_Errors .= WAValidateDT((isset($_POST["dob"])?date('M-dd-yy', strtotime($_POST["dob"])):"") . "",true,"","","",false,"","","",true,11);
M-dd-yy renders a date like Mar-6-2015 which is what my client requires.
I have included the full page in the PM section.
Thanks.