Operating system and syntax
|
UNIX / Windows
|
-yy n
|
||
Use with
|
Maximum value
|
Minimum value
|
Single-user default
|
Multi-user default
|
Client Session, Database Server
|
—
|
—
|
1950
|
1950
|
-yy
|
Year (as supplied in DATE format)
|
Result of year function
|
1900
|
50-99
|
1950-1999
|
00-49
|
1900-1949
|
|
1950
|
50-99
|
1950-1999
|
00-49
|
2000-2049
|
|
1980
|
80-99
|
1980-1999
|
00-79
|
2000-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. |
DEFINE VARIABLE hdate AS DATE INITIAL 01/01/2001.
|