Properties of Date Validation window
Use this window to define validation methods for date fields using the following options:
- Date Formatter
-
Choose a date formatter from the list. It is used to reformat the date before the validation check is performed and to provide the field’s DateValue property. The value for this option is set to <No date formatter> by default.
Important Select a Date Formatter for the validation methods to be sure that the DateValue is available, otherwise this may cause an error. - Reference Date
-
A reference date can be set that is used as a baseline to compare with the date found on the document. Select one of the following values:
-
Today.
Select this option if you want the date the content is processed to be the reference date.
This is the default value for this option.
-
Fixed Date.
Select this option if you want to manually specify a reference date.
Type the reference date into the field or select it from the list. The list only contains multiple values if more than one date validation method is configured to use this option.
-
- Options
-
This group has the following options:
- Check for period before reference date
-
Select this option if you want to restrict a date found on a document to be within the past N days. If a date falls outside the N days value, it is invalid. This option is selected by default. The value for this option is set to 30 by default.
- Check for period after reference date
-
Select this option if you want to restrict a date on a document to be within N days after the reference date. If a date falls out side this range, it is invalid. The value for this option is set to 0 by default.
This restricts all dates to be less than or equal to the date the content is processed.
- Allow empty field
-
Select this option to allow an empty field to be valid. If this option is not selected, and a field is empty, it is marked as invalid.
This option is cleared by default.
- Testing
-
This group enables you to test the options set above by typing some sample text into the Sample input text field and clicking on the Validate button.
A message is displayed below the input field telling you that the entered text is valid, or explains why it is not valid.
Definitions for the buttons at the bottom of this window can be found in Common Transformation Designer Buttons.