WEEKDATEw. Format

Writes SAS date values as the day of the week and the date in the form day-of-week, month-name dd, yy (or yyyy).

Category: Date and Time
Alignment: Right

Syntax

WEEKDATEw.

Arguments

w

specifies the width of the output field.

Default 29
Range 3–37

Details

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

Comparisons

The WEEKDATEw. format is the same as the WEEKDATXw. format except that WEEKDATXw. prints dd before the month's name.

Example

The example table uses the input value of 19537 which is the SAS date value that corresponds to June 28, 2013.
Statements
Results
 
----+----1----+----2
select put(19537,weekdate3.);
Fri
select put(19537,weekdate9.);
 Friday
select put(19537,weekdate15.);
Fri, Jun 28, 13
select put(19537,weekdate17.);
Fri, Jun 28, 2013
Last updated: February 23, 2017