I have this input and i want to add validation for date
<input class="input-text validate-date" data-validate="{required:true}"
value: value,
valueUpdate: 'keyup',
hasFocus: focused,
attr: {
name: inputName,
placeholder: placeholder,
'aria-describedby': noticeId,
id: uid,
disabled: disabled
}" name="custom_attributes[amorderattr_birth__date]" placeholder="" aria-describedby="notice-N780KER" id="N780KER" style="
I already added this class class="input-text validate-date" data-validate="{required:true}">
but nothing happen.
Does anyone have any idea how it's the proper way to add date validation for this filed?