Formats |
Category: | Date and Time |
Alignment: | right |
Syntax | |
Syntax Description | |
Details | |
Comparisons | |
Examples | |
See Also |
Syntax |
DTWKDATXw. |
Details |
The DTWKDATXw. format writes SAS date values in the form day-of-week, dd month-name, yy or yyyy, where
is either the first three letters of the day name or the entire day name.
is either the first three letters of the month name or the entire month name.
is a two-digit or four-digit integer that represents the year.
Comparisons |
The DTWKDATXw. format is similar to the WEEKDATXw. format in that they both write date values. The difference is that DTWKDATXw. expects a datetime value as input, and WEEKDATXw. expects a SAS date value.
Examples |
The example table uses as input the value 1476598132, which is the SAS datetime value that corresponds to October 16, 2002, at 06:08:52 a.m.
SAS Statement | Results |
---|---|
|
----+----1----+----2----+----3 |
put date dtwkdatx.; |
Monday, 16 October 2006 |
put date dtwkdatx3.; |
Mon |
put date dtwkdatx8.; |
Mon |
put date dtwkdatx25.; |
Monday, 16 Oct 2006 |
See Also |
|
Copyright © 2011 by SAS Institute Inc., Cary, NC, USA. All rights reserved.