Writes date values in the form [yy]yyqr or [yy]yy-qr. The x in the format name is a character that represents the special character that separates the year and the quarter of the year. This character can be a hyphen (-), period (.), blank character, slash (/), colon (:), or no separator. The year can be either 2 or 4 digits and qr is the quarter of the year in roman numerals.
Category: | Date and Time |
Alignment: | Right |
identifies a separator or specifies that no separator appear between the year and the quarter. Valid values for x are any of the following:
separates with a colon
separates with a hyphen
indicates no separator
separates with a period
separates with a forward slash.
specifies the width of the output field.
Default | 8 |
Range | 6–32 |
Interactions | When x is set to N, no separator is specified. The width range is then 5–32, and the default changes to 7. |
When the value of w is too small to write a four-digit year, the date appears with only the last two digits of the year. |
[yy]yyqr |
[yy]yyxqr |
Statements
|
Results
|
---|---|
|
----+----1----+ |
select put(19721,yyqrc6.); |
13:IV |
select put(19721,yyqrd.); |
2013-IV |
select put(197214,yyqrn5.); |
13IV |
select put(19721,yyqrp8.); |
2013.IV |
select put(19721,yyqrs10.); |
2013/IV |