4D v16.3SET DEFAULT CENTURY |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16.3
SET DEFAULT CENTURY
SET DEFAULT CENTURY
The SET DEFAULT CENTURY command specifies the default century and the pivot year used by 4D when you enter a date with only two digits for the year. The pivot year value defines the way 4D will interpret data entry of a date with a two-digit year:
By default, 4D sets the century to be the 20th century and uses 30 as pivot year. For example:
To change this default, execute the command. The effect of the command is immediate. You can pass a new default century only, or a new default century and a pivot year. If you pass only a new default century minus one in century, 4D will interpret data entry of a date with a two-digit year as belonging to this century. SET DEFAULT CENTURY(20) ` Switch to 21st century for default century
In addition, you can specify the optional pivotYear parameter. SET DEFAULT CENTURY(19;95) ` Switch to 21st century for default century if year is less than 95
Note: This command only affects how 4D interprets dates entered with a two-digit year.
This command only affects data entry. It has no effect on date storage, computation, and so on.
|
PROPERTIES
Product: 4D
HISTORY
Modified: 4D v6.7 ARTICLE USAGE
4D Language Reference ( 4D v16) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||