Returns a character string that represents the system date and time of day.
DATETIME()
or
DATETIME
The second form can be used only when DATETIME has been declared with the BUILTIN attribute.
DATETIME() /* returned '19940526163111585' on May 26, 1994 at 11.585 seconds after 4:31 PM */
None.
Description
The DATE function returns a character string of length 17 that represents the system date in the form yyyymmddhhmmssttt, where:
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: