![]() Chapter Contents |
![]() Previous |
![]() Next |
| MMDDYYxw. |
| Category: | Date and Time |
| Alignment: | right |
| Syntax | |
| Syntax Description | |
| Details | |
| Examples | |
| See Also |
Syntax |
| MMDDYYxw. |
| Default: | 8 |
| Range: | 2-10 |
| Tip: | When w is from 2 to 5, SAS prints as much of the month and day as possible. When w is 7, the date appears as a two-digit year without separators, and the value is right aligned in the output field. |
| Details |
The MMDDYYxw. format writes SAS date values in the form mmddyy or mmddyyyy, where
| Examples |
The example table uses the input value of 15595, which is the SAS date value that corresponds to September 12, 2002.
| SAS Statements | Results |
|---|---|
----+----1----+ |
|
put day mmddyyc5.; |
09:12 |
put day mmddyyd8.; |
09-12-02 |
put day mmddyyp10.; |
09.12.2002 |
put day mmddyyn8.; |
09122002 |
| See Also |
| Formats:
| |||||||||
| Functions:
| |||||||||
| Informat:
|
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.