Purpose
Returns tomorrow's date in the format requested.
Syntax
►►─┬─ TOMORROW ──┬── ( date-format ) ─────────────────────────────────────────►◄ └─ TOMORROWX ─┘
Parameters
Invokes the tomorrow function. TOMORROWX returns a value that contains the century portion of the year.
Specifies the output date format. Date-format can be:
Date-format can be:
Example 1
In the following example, the tomorrow function is used to display tomorrow's date in the calendar format (where today is March 17, 1989):
Statement:
MOVE TOMORROW('C') TO WK-RESULT.
Returned value: 031889
Example 2
In this example, the tomorrow function is used to return tomorrow's date in the calendar format (where today is October 30, 1990). The returned date contains the century portion of the year:
Statement:
MOVE TOMORROWX('C') TO WK-RESULT.
Returned value: 10311990
|
Copyright © 2014 CA.
All rights reserved.
|
|