MMDDYYw. Format
Writes SAS date values in the form mmdd[yy]yy or mm/dd/[yy]yy,
where a forward slash is the separator and the year appears as either
2 or 4 digits.
Category: |
Date and Time |
Alignment: |
Right |
Syntax
Arguments
w
specifies the width
of the output field.
Default |
8 |
Range |
2–10 |
Interaction |
When w has
a value of from 2 to 5, the date appears with as much of the month
and the day as possible. When w is
7, the date appears as a two-digit year without slashes.
|
Details
The MMDDYY
w.
format writes SAS date values in the form
mmdd[
yy]
yy or
mm/
dd/[
yy]
yy,
where
mm
is an integer that
represents the month.
dd
is an integer that
represents the day of the month.
[yy]yy
is a two-digit or four-digit
integer that represents the year.
Example
The following examples
use the input value of 19431, which is the SAS date value that corresponds
to March 14, 2013.
|
|
|
|
select put(19431,mmddyy2.);
|
|
select put(19431,mmddyy3.);
|
|
select put(19431,mmddyy4.);
|
|
select put(19431,mmddyy5.);
|
|
select put(19431,mmddyy6.);
|
|
select put(19431,mmddyy7.);
|
|
select put(19431,mmddyy8.);
|
|
select put(19431,mmddyy10.);
|
|