Meta Box
Support Forum
Support › Meta Box Builder › Date validation does not workResolved
I have a date field with the following characteristics: Type: DatePicker Save Format: Y-m-d - dateFormat: dd/mm/yy Validation: Date Required: none html5: autocomplete = off (this should be the default for DatePicker)
Hi Nuno,
If you use the Validate date, it will apply the date method of jQueryValidation to validate the input value, you can find here https://jqueryvalidation.org/date-method/. That means the date input format should be mm/dd/yy or mm-dd-yy. Refer to this article https://www.w3schools.com/js/js_date_formats.asp
date
date method
mm/dd/yy
mm-dd-yy
So I recommend removing the validation when using the field type date, the user also cannot type any text to the input box.