DATETIME returns a character string timestamp of today’s date in either the default or a user-specified format.
|
If present, it specifies the date/time pattern in which the date is returned. If y is missing, it is assumed to be the default date/time pattern 'YYYYMMDDHHMISS999'.
Refer to Table 50 for the allowed patterns.
y must have computational type and should have character type. If not, it is converted to character.
See DAYS for an example of using DATETIME.