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. The value for this setting is set to <No date formatter> by default.

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 setting if you want the date a batch is processed to be the reference date.

    This is the default value for this setting.

  • 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. This setting is selected by default. The value for this setting is set to 30 by default.

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. The value for this setting is set to 0 by default.

This restricts all dates to be less than or equal to the date the batch 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.

This setting is cleared by default.

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 Project Builder Buttons.