SET CENTURY Modify the date format to include or omit century digits ------------------------------------------------------------------------------ Syntax SET CENTURY on | OFF | <xlToggle> Arguments ON allows input and display of the century digits for dates. OFF suppresses the input and display of the century digits for dates. <xlToggle> is a logical expression that must be enclosed in parentheses. A value of true (.T.) is the same as ON, and a value of false (.F.) is the same as OFF. Description SET CENTURY modifies the current date format as set by SET DATE. SET CENTURY ON changes the date format to contain four digits for the year. With the date format set to four digits for the year, date values display with a four-digit year, and dates of any century can be input. SET CENTURY OFF changes the date format to contain only two digits for the year. With the date format set to only two digits for the year (CENTURY OFF), the century digits of dates are not displayed and cannot be input. Note that only the display and input format of dates is affected; date calculations maintain the century information regardless of the date format. Clipper supports all dates in the range 01/01/0100 to 12/31/2999. Examples . This example shows the results of a simple SET CENTURY command: SET CENTURY OFF ? DATE() // Result: 09/15/90 SET CENTURY ON ? DATE() // Result: 09/15/1990 Files Library is CLIPPER.LIB.
See Also: CTOD() DATE() DTOC() SET DATE SET EPOCH
Pingback: C5 UI Global Settings | Viva Clipper !
Pingback: C5 User Interface | Viva Clipper !
Pingback: C5 Commands | Viva Clipper !
Pingback: C5 Commands | Viva Clipper !