DATEw. Format
Writes date values in the form ddmmmyy, ddmmmyyyy, or dd-mmm-yyyy.
Category: |
Date and Time |
Alignment: |
right |
Syntax
Syntax Description
- w
-
specifies the width
of the output field.
Default:7
Range:5–11
Tip:Use a width of 9 to print a 4-digit year without a separator
between the day, month, and year. Use a width of 11 to print a 4-digit
year using a hyphen as a separator between the day, month, and year
Details
The DATE
w. format writes SAS date values in the form
ddmmmyy,
ddmmmyyyy, or
dd-mmm-yyyy, where
is an integer that
represents the day of the month.
is the first three
letters of the month name.
is a two-digit or four-digit
integer that represents the year.
Example
The example table uses
the input value of 19068, which is the SAS date value that corresponds
to March 16, 2012.