Command SET CENTURY Foundation
Sets whether display of years in date values will contain two or four digits.
SET CENTURY on | OFF | <lToggle>
The command SET CENTURY turns on or off the display of digits for the century in date values. When it is turned on, the century is displayed and can be input with date values. When SET CENTURY is set to OFF, only the digits for the decade and year are displayed.
The initial value for this setting is taken from the country specific configuration data of the operating system.
SET CENTURY influences only the display of date vales. Date values are always processed internally using the century, so that date calculations can always occur over the century limit. The valid range for date values extends in time from 1/1/0001 to 12/31/9999. Note that today's calendar exists only since the year 1582 (refer to the section "Date" in the chapter "Datatypes and Literals").
// The example illustrates the effect of SET CENTURY.
PROCEDURE Main
SET CENTURY OFF
? Date() // result: 12/24/94
SET CENTURY ON
? Date() // result: 12/24/1994
RETURN
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.