const rules = {
confCall: `after:`${new Date()}
}
// or
const rules = {
confCall: [
rule('after', new Date())
]
}
Ensures the value of the field is after the expected date.
This method will import isAfter function of date-fns.
const rules = {
confCall: `after:`${new Date()}
}
// or
const rules = {
confCall: [
rule('after', new Date())
]
}
For customized build, you can import this rule as follows.
import { after } from 'indicative/builds/validations'