Returns a character string that represents the system date.
Syntax
DATE()
or
DATE
The second form can be used only when the BUILTIN attribute is specified.
Description
The DATE function returns a character string of length 6 that represents the system date in the form yymmdd, where yy, mm, and dd are in the ranges 00–99, 01–12, and 01–31, respectively, and represent year, month, and day, respectively.
You may also define the LPI_YEAR environment variable to return any year value you want (such as 2009).
If you are using Bourne shell, do this:
LPI_YEAR=2009;
export LPI_YEAR
If you are using C-shell, do this:
setenv LPI_YEAR 2009;
Examples
DATE() /* returned '891017' on October 17, 1989 */
Description
The DATE function returns a character string of length 6 that represents the system date in the form yymmdd, where yy, mm, and dd are in the ranges 00–99, 01–12, and 01–31, respectively, and represent year, month, and day, respectively.
You may also define the LPI_YEAR environment variable to return any year value you want (such as 2009).
If you are using Bourne shell, do this:
If you are using C-shell, do this: