DATETIME

DATETIME returns a character string timestamp of today's date in either the default format or a user-specified format.

Read syntax diagramSkip visual syntax diagramDATETIME(y)
y
Expression

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'.

See Table 2 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.