Previous Page | Next Page

Formats

DTYYQCw. Format



Writes the date part of a datetime value as the year and the quarter and separates them with a colon (:).
Category: Date and Time
Alignment: right

Syntax
Syntax Description
Details
Examples
See Also

Syntax

DTYYQCw.

Syntax Description

w

specifies the width of the output field.

Default: 4
Range: 4-6

Details

The DTYYQCw. format writes SAS datetime values in the form yy or yyyy, followed by a colon (:) and the numeric value for the quarter of the year.


Examples

The example table uses as input the value 1476598132, which is the SAS datetime value that corresponds to October 16, 2006, at 06:08:52 p.m..

SAS Statement Results

----+----1
put date dtyyqc.;
06:4
put date dtyyqc4.;
06:4
put date dtyyqc5.;
 06:4
put date dtyyqc6.;
2006:4


See Also

Formats:

DATETIMEw.d Format

Previous Page | Next Page | Top of Page