DateRangeΒΆ
Checks if a field value is between or equal a configured date range.
Example Code:
validators {
DefaultValidator {
model = DefaultValidator
config {
fields {
birthdate.errorChecks {
dateRange {
model = DateRange
dateMax = 1995-10-24
dateMin = 1950-1-1
}
}
}
}
}
}
Properties
dateMax |
Sets the max date a field value can be. |
Mandatory |
True |
Data Type |
String |
Note |
Format must be YYYY-MM-DD e.g 2023-07-19. |
dateMin |
Sets the min date a field value must be. |
Mandatory |
True |
Data Type |
String |
Note |
Format must be YYYY-MM-DD e.g 2023-07-19. |