DTWKDATXw. Format
Writes the date part of a datetime value as the
day of the week and the date in the form day-of-week, dd month-name yy (or yyyy).
Category: |
Date and Time |
Alignment: |
right |
Syntax
Syntax Description
- w
-
specifies the width
of the output field.
Details
The DTWKDATX
w. 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 an integer that
represents the day of the month.
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 DTWKDATX
w. format is similar to the WEEKDATX
w. format in that they both write date values.
The difference is that DTWKDATX
w. expects a datetime value as input, and WEEKDATX
w. expects a SAS date value.
Example
The example table uses
as input the value 1665986932, which is the SAS datetime value that
corresponds to October 16, 20012, at 06:08:52 a.m.
|
|
|
----+----1----+----2----+
|
|
|
|
|
|
|
|
|