O'Reilly logo

Step-by-Step Programming with Base SAS 9.4 by SAS Institute

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:
Table 15.1 How Dates Are Formatted
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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required