College of Natural Sciences
 
FAQs
This is for IE7 to hold div open

SAS FAQ #18: Formatting dates for output in SAS

Question:

How can I print the dates in a SAS dataset in a more meaningful form?

Answer:

In the SAS DATA step, associate the date variable with a SAS date format. This format will be applied to the variable whenever it is displayed. In the following example, the values in the variable BDAY will be displayed in a ddmmyy format.

FORMAT bday DATE8. ;

For more information on SAS formats, click on the Help button in the SAS menu bar and scroll to SAS Help and Documentation.

If you have further questions, send E-mail to stats@ssc.utexas.edu.