And single-digit representing the quarter the year
Chapter 2: Displaying SAS Date, Time, and Datetime Values as Dates and Times45
DTWKDATXw.
|
|
|
DTWKDATX9. |
DTWKDATX15. |
|
|
---|---|---|
DTWKDATX23. |
|
DTWKDATX29. | Monday, 27 February 2012 | Leading spaces in example, but will fit any |
---|
DTYEARw. displays the year for the given datetime value. The DTYEAR. format is identical in result to the YEAR. format, but it is used with datetime values instead of date values. It is right-justified, andwcan be from 2 to 4, with a default width of 4. When w is specified as 2 or 3, a two-digit year is used. The following table shows the result when the datetime value is 1716310050.2, which corresponds to the time 4:47:30 p.m. on May 21, 2014.
|
||
---|---|---|
|
||
|
Two-digit year with a leading space. | |
46 The Essential Guide to SAS Dates and Times, Second Edition
DTYYQCw.
Format Name | ||
---|---|---|
|
|
|
Leading space; two-digit year. | ||
|
MDYAMPMw.
Result | ||
---|---|---|
5/19/14 |
|
0/0/0 for lengths less than 17.