Chapter Contents |
Previous |
Next |
QTR |
Category: | Date and Time |
Syntax | |
Arguments | |
Details | |
Examples | |
See Also |
Syntax |
QTR(date) |
Details |
The QTR function returns a value of 1, 2, 3, or 4 from a SAS date value to indicate the quarter of the year in which a date value falls.
Examples |
The following SAS statements produce these results:
SAS Statements | Results |
---|---|
x='20jan94'd; y=qtr(x); put y=; |
y=1 |
See Also |
Function:
|
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.