DATETIME Function

Returns the current date and time of day as a SAS datetime value.

Category: Date and Time

Syntax

DATETIME()

Example

This example returns a SAS value that represents the number of seconds between January 1, 1960 and the current time:
when=datetime();
put when=;

See Also