Operating system and syntax
|
UNIX Windows
|
-yy n
|
||
Use with
|
Maximum value
|
Minimum value
|
Single-user default
|
Multi-user default
|
CS, DBS
|
–
|
–
|
1950
|
1950
|
-yy
|
Year (as supplied in DATE format)
|
Result of year function
|
1900
|
50 to 99
|
1950 to 1999
|
00 to 49
|
1900 to 1949
|
|
1950
|
50 to 99
|
1950 to 1999
|
00 to 49
|
2000 to 2049
|
|
1980
|
80 to 99
|
1980 to 1999
|
00 to 79
|
2000 to 2079
|
DEFINE VARIABLE dDate AS DATE NO-UNDO.
DISPLAY "Enter date or Press F4 to end." WITH FRAME msg. REPEAT: SET ddate LABEL "Date" WITH SIDE-LABELS. DISPLAY YEAR(dDate) FORMAT "9999" LABEL "=> Year" WITH SIDE-LABELS. END. |