Chapter Contents

Previous

Next
WEEKDATXw.

WEEKDATXw.



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

Category: Date and Time
Alignment: right


Syntax
Syntax Description
Details
Comparisons
Examples
See Also

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), where

dd
is an integer that represents the day of the month.

yy or yyyy
is a two- 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 WEEKDATEw. prints dd after the month's name.


Examples

The example table uses the input value of 15415 which is the SAS date value that corresponds to March 16, 2002.

SAS Statements Results

----+----1----+----2----+----3
put date weekdatex.;
     Saturday, March 16, 2002


See Also

Formats:

DATEw.
DDMMYYw.
MMDDYYw.
TODw.d
WEEKDATEw.
YYMMDDw.

Functions:

JULDATE
MDY
WEEKDAY

Informats:

DATEw.
DDMMYYw.
MMDDYYw.
YYMMDDw.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.