Manipulating SAS Date Values with Functions
SAS Date and Time Values
SAS includes a variety of functions that enable you to work with SAS date values. SAS stores a date value as the number of days from January 1, 1960, to a given date. For example:
A SAS time value is stored as the number of seconds since midnight. For example:
Consequently, a SAS datetime value is stored as the number of seconds between midnight on January 1, 1960, and a given date and time. For example:
SAS stores date values as numbers so that you can easily sort ...