Previous Page | Next Page

Formats

WEEKDATEw. Format



Writes 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
Syntax Description
Details
Comparisons
Examples
See Also

Syntax

WEEKDATEw.

Syntax Description

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.


Examples

The example table uses the input value of 16601 which is the SAS date value that corresponds to June 14, 2005.

SAS Statement Results
 
----+----1----+----2
put date weekdate3.;
Tue
put date weekdate9.;
 Tuesday
put date weekdate15.;
Tue, Jun 14, 05
put date weekdate17.; 
Tue, Jun 14, 2005


See Also

Formats:

DATEw. Format

DDMMYYw. Format

MMDDYYw. Format

TODw.d Format

WEEKDATXw. Format

YYMMDDw. Format

Functions:

JULDATE Function

MDY Function

WEEKDAY Function

Informats:

DATEw. Informat

DDMMYYw. Informat

MMDDYYw. Informat

YYMMDDw. Informat

Previous Page | Next Page | Top of Page