WEEKDATXw. Format

Writes date values as the day of the week and date in the form day-of-week, dd month-name yy (or yyyy).
Category: Date and Time
Alignment: right

Syntax

WEEKDATXw.

Syntax Description

w
specifies the width of the output field.
Default:29
Range:3–37

Details

The WEEKDATXw. format writes SAS date values in the form day-of-week, dd month-name, yy (or yyyy):
dd
is an integer that represents the day of the month.
yy or yyyy
is a two-digit or a four-digit integer that represents the year.
If w is too small to write the complete day of the week and month, then SAS abbreviates as needed.

Comparisons

The WEEKDATEw. format is the same as the WEEKDATXw. format, except that WEEKDATEw. prints dd after the month's name.
The WEEKDATXw. format is the same as the DTWKDATXw. format, except that DTWKDATXw. expects a datetime value as input.

Example

The example table uses the input value of 19046, which is the SAS date value that corresponds to February 23, 2012.
SAS Statement
Result
----+----1----+----2----+----3
put date weekdatx.;
    Thursday, 23 February 2012

See Also

Functions:
JULDATE Function in SAS Functions and CALL Routines: Reference
MDY Function in SAS Functions and CALL Routines: Reference
WEEKDAY Function in SAS Functions and CALL Routines: Reference