Previous Topic: Everyday Calendar

Next Topic: *DURATION Rules and Examples

*DATE INCREMENT Rules and Examples

*DATE INCREMENT performs the following operation:

Start date + Increment = End date

Start date

Increment

End date

January 05, 1996

1 (*MONTH)

February 05, 1996

January 05, 1996

1 (*YEAR)

January 05, 1997

Start date

Increment

End date

March 31 1996

1 (*MONTH)

April 30, 1996

February 29, 1996

1 (*YEAR)

February 28, 1997

As a result, the End date for the one-unit increment case is always within the contiguous unit, which can be the next or previous unit depending on the sign of the increment.

Start date

Increment

End date

May 31 1996

4 (*MONTH)

September 30, 1996

December 30, 1993

102 (*YEAR)

February 28, 1995

Start date

Increment

End date

February 29 1996

–1 (*MONTH)

September 30, 1996

December 30, 1993

102 (*YEAR)

February 28, 1995

Start date

Increment

End date

February 29, 1996

–1 (*MONTH)

January 31, 1996
(not January 29)

February 29, 1996

2 (*MONTH)

April 30, 1996
(not April 29)

Start date

Increment

End date

January 13, 1996

1 (*MONTH)

February 13, 1996

February 13, 1996

–1 (*MONTH)

January 13, 1996

Following is an example where the operation is not reversible.

Start date

Increment

End date

Jnuary 29, 1996

1 (*MONTH)

February 29, 1996

February 29, 1996

–1 (*MONTH)

January 31, 1996

Start date

Increment

End date

January 29, 1996

1 (*MONTH)

February 29, 1996

January 30, 1996

1 (*MONTH)

February 29, 1996

January 31, 1996

1 (*MONTH)

February 29, 1996

This is a good example of the approximate calendar calculations mentioned previously.

Note: The everyday calendar can be widely used for business purposes. For example, to process a bank statement when the billing cycle is defined as a time interval between the first and the last day of every month.

Start date

Increment

End date

November 29, 1993

10315 (*YYMMDD)

March 15, 1995

Following are the steps used to produce this result; namely, the Start date is incremented subsequently by 1 year, then by 3 months, and then by 15 days:

 

Start date

Increment

End date

1.

November 29, 1993

1 (*YEARS)

November 29, 1994

2.

November 29, 1994

3 (*MONTHS)

February 28, 1995 (Note that the last day is adjusted.)

3.

February 28, 1995

15 (*YYMMDD)

March 15, 1995

Note: The (*YYMMDD)' increment may not always be equal to (*DAYS); for example, if days were excluded from the calendar using a Date List or a selection parameter. However, the (*YEARS) and the (*MONTHS) always equal (*YYMMDD) and the (*YYMMDD).