Previous Page | Next Page

Functions and CALL Routines

DATETIME Function



Returns the current date and time of day as a SAS datetime value.
Category: Date and Time

Syntax
Examples
See Also

Syntax

DATETIME()


Examples

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

Functions:

DATE Function

TIME Function

Previous Page | Next Page | Top of Page