Properties of Date Validation window

Use this window to define validation methods for date fields using the following settings:

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. (Default: No date formatter)

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. (Default: Selected)

    Select this setting if you want the date the content is processed to be the reference date.

  • Fixed Date.

    Select this setting 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 setting.

Options

This group has the following settings:

Check for period before reference date

Select this setting 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. (Default: 30)

Check for period after reference date

Select this setting 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. (Default: 0)

This restricts all dates to be less than or equal to the date the content is processed.

Allow empty field

Select this setting to allow an empty field to be valid. If this setting is not selected, and a field is empty, it is marked as invalid.

However, it is possible that even if this field is empty, it is marked as invalid. This happens if this date validation method is in a sequence and the previous validation method in the sequence has failed. (Default: Selected)

Testing

This group enables you to test the settings 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.