When w has
a value of from 2 to 5, the date appears with as much of the year
and the month as possible. When w is
7, the date appears as a two-digit year without a hyphen.
Details
The YYMMDDw.
format writes SAS date values in one of the following forms:
yymmdd
[yy]yy-mm-dd
[yy]yy
is a two-digit or four-digit
integer that represents the year.
-
is the separator.
mm
is an integer that
represents the month.
dd
is an integer that
represents the day of the month.
To format a date that
has a four-digit year and no separators, use the YYMMDDx. format.
Example
The following examples
use the input value of 19450, which is the SAS date value that corresponds
to April 2, 2013.