Working With SAS Date and Time Functions: Foundations & Fundamentals

Date Added: Mar 2010
Format: PDF

Many new users are confused about how to work with variables (columns) representing dates and time in the SAS System. This paper provides an explanation of how to work with date and time variables, and some of the key SAS tools (e.g., functions and formats) available to simplify the work with the date and time data. Among the important concepts addressed in this paper are: how the SAS System stores the values of dates and times; how to create SAS date, time and datetime variables, how Formats are used to control the "External representation," or display of date, time and datetime variables, and, how to use SAS programming language tools, such as functions and constants, to accomplish the programming goals.