8.3.13   DateOffset

The DateOffset modifier calculates the date resulting from adding or subtracting an offset in days to a defined date, and the result is output to a data field, defined in Destination Field. The date from which the offset is calculated may be read from the field defined in the data for the service by selecting the Use Field check box, and selecting the desired field from the drop-down list. The dates may also be entered manually in the format YYYY:MM:DD, or selected from the calender by selecting the button. The default value for the date is the current date.

The Operation field makes it possible to select if the offset should be added to or subtracted from the input date.

The Resulting Expression field displays the operation defined in the modifier, which also appears in the Selection Tree tab on the left.

The offset number of days may be defined in a number of ways. It may be entered manually, as an integer number of days. It may be read from the fields defined in the data for the service by selecting the Use Field check box. If the indicated field is a value list or map, it is possible to define the index of the value to be read from the list by entering the index number manually, or selecting the Use Field check box and choosing a field from the subsequent drop-down list.

Figure 186   DateOffset Modifier

Figure 186 gives an example of the Date Offset modifier. In this example, the value output to the destination field Integer_Field_OUT is 2009-08-20, the input date plus two days.