Returns today's date in the format requested.
Syntax:
►►─┬─ TODAY ──┬─ ('output-date-format') ──────────────────────────────────────►◄
└─ TODAYX ─┘
Invocation names:
TODAY TODAYX
Parameters:
Invokes the today function. TODAYX returns a date that contains the century portion of the year.
Specifies the output date format. Output-date-format can be:
Examples:
Example 1
In the example below, the today function is used to display today's date in the calendar format (where today is March 17, 1996):
Statement:
compute sys-date = today('c')
Returned value: 031796
Example 2
In the example below, the today function is used to display today's date in the calendar format (where today is March 17, 1996). The returned date contains the century portion of the year:
Statement:
compute sys-date = todayx('c')
Returned value: 03171996
Note: In the example above, SYS-DATE must contain the century portion of the year.
|
Copyright © 2013 CA.
All rights reserved.
|
|