AgeMaxΒΆ
Checks if a given date is less or equal the specified number of years.
Example Code:
validators {
DefaultValidator {
model = DefaultValidator
config {
fields {
birthdate.errorChecks {
ageMax {
model = AgeMax
ageMax = 14
}
}
}
}
}
}
Properties
ageMax |
Sets the max years to check a field date value for. |
Mandatory |
False |
Data Type |
Integer |
Default |
0 |
Note |
Date field format must be YYYY-MM-DD e.g 2000-07-19. |