Working with Dates in the SAS System |
Purpose |
SAS stores dates as single, unique numbers so that they can be used in programs like any other numeric variable. In this section you will learn how to do the following:
make SAS read dates in raw data files and store them as SAS date values
indicate which calendar form SAS should use to display SAS date values
calculate with dates, that is, determine the number of days between dates, find the day of the week on which a date falls, and use today's date in calculations
Prerequisites |
You should understand the following topics before proceeding with this section:
Copyright © 2012 by SAS Institute Inc., Cary, NC, USA. All rights reserved.