A SAS datetime is the number of seconds since (or until) Jan 1, 1960. A SAS date is the number of days since (or until) Jan 1, 1960. The DATEPART function converts the datetime to a date value. Or if you simply need to format it for display purposes, or as a class variable in a SAS proc, use the DTDATE9.What are SAS dates?
In other words, a SAS date is a special representation of a calendar date. Unlike dates in many other languages, SAS has a specific numeric value assigned to each day. The starting point for all SAS dates is January 1 st , 1960 and is represented as day zero (0).What time is SAS?
SAS time value is a value representing the number of seconds since midnight of the current day. SAS time values are between 0 and 86400. SAS datetime value is a value representing the number of seconds between January 1, 1960 and an hour/minute/second within a specified date.