Chapter 2: Displaying SAS Date, Time, and Datetime Values as Dates and Times as We Know Them

2.1 How Do I Use a Format?

2.2 How Many Built-In Formats Are There for Dates and Times?

2.3 Date Formats, Justification, and ODS

2.4 Detailed Discussion of Each Format

2.5 Creating Custom Date Formats Using the VALUE Statement of PROC FORMAT

2.6 Creating Custom Date Formats Using the PICTURE Statement of PROC FORMAT

2.7 Creating Custom Formats Using PROC FCMP for Processing

2.8 The PUT() Function and Formats

In SAS, date, time, and datetime values are stored as integers (unless you are storing fractional parts of seconds). They are all counted from a fixed reference point. SAS date values increment by 1 at midnight of each day, while SAS datetime values ...

Get The Essential Guide to SAS Dates and Times, Second Edition, 2nd Edition 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.