Previous PageNext Page

SAS Formats and Informats
There are many formats and informats for dates. Look at the OnLine documentation for a complete list. Some common ones are:

Date format

Output form of date

Date informat

Form of date to be read

DATE7.

25DEC99

DATE7.

25DEC99

DATE9.

25DEC1999

DATE9.

25DEC1999

MMDDYY8.

12-25-99
The "-" could be any character.

MMDDYY8.

12/25/99

MMDDYY10.

12-25-1999

MMDDYY10.

12/25/1999

DDMMYY10.

25-12-1999

DDMMYY10.

25-12-1999

YYMMDD10.

1999-12-25

YYMMDD10.

1999-12-25

DAY2.

25

MONYY7.

DEC1999
Stored as 01DEC1999

MONTH2.

12

YEAR4.

1999

YYQ6.

1999Q4
Stored as 01OCT1999

QTR1.

4

WORDDATE20.

December 25, 1999

   

Previous PageTable Of ContentsNext Page