parameter
parameter copied to clipboard
Allowing ISO format for dateTime validation?
Is it possible to add ISO format support in validation rules of type dateTime?
@BkunS you can use moment and add custom validate
validator.addRule('ISOTime', (_, value) => {
if (!moment(value, moment.ISO_8601).isValid()) {
return 'time must be UTC ISO8601 format';
}
});