Understanding How SAS Handles Dates
How SAS Stores Date Values
Dates are written in many different
ways. Some dates contain only numbers. Others contain various combinations
of numbers, letters, and characters. For example, all the following
forms represent the date July 26, 2013:
072613
|
26JUL13
|
132607
|
7/26/13
|
26JUL2013
|
July 26, 2013
|
With so many different
forms of dates, there must be a way to store dates and use them in
calculations, regardless of how dates are entered or displayed.
The common ground that SAS uses to represent dates is called a SAS data value. No matter which form you use to write a date, SAS can convert and store that date as the number of days between January ...
Get Step-by-Step Programming with Base SAS 9.4 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.