Date Validator
Validate a date.
- If the date was not specified, the corresponding error type is
REQUIRED. - If the specified date is before the minimum, the corresponding error type is
BEFORE_MIN_DATE. - If the specified date is after the maximum, the corresponding error type is
AFTER_MAX_DATE.
minRelative) The "minimum relative value" is the lower limit (earliest possible) for allowed difference in days to the current date.
Examples: A value of 1 means that tomorrow is the earliest possible date to enter, a value of -365 means that the entered date can be at most one year in the past.
minDate) The earliest date allowed to be filled in. This cannot be used together with "Minimum Relative" and must be in ISO 8601 format.
maxRelative) The "maximum relative value" is the upper limit (last possible) for allowed difference in days to the current date. This cannot be used together with "Max Date".
Examples: A value of 1 means that tomorrow is the latest possible date to enter, a value of -365 means that the entered date has to be at least one year in the past. Use this property to configure a minimal required age.
maxDate) The latest date allowed to be filled in. This cannot be used together with "Maximum Relative" and it must be in ISO 8601 format.
type: DateValidator
id: DateValidator-xxxxxx
displayName:
comment:
properties:
maxDate:
maxRelative:
minDate:
minRelative: