AgeMinΒΆ
Checks if a given date is at least the specified number of years.
Example Code:
validators {
DefaultValidator {
model = DefaultValidator
config {
fields {
birthdate.errorChecks {
ageMin {
model = AgeMin
ageMin = 18
}
}
}
}
}
}
Properties
ageMin |
Sets the min 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. |