Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>set century</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SET CENTURY


Syntax:     SET CENTURY on/OFF/(<expL>)

Purpose:    To toggle the year's century digits for the input and
            display of date values.

Usage:      When CENTURY is OFF, the century digits of dates are not
            displayed and cannot be input.  If a calculation is
            performed on a date resulting in a non-twentieth century
            value, the date contains the correct century although it
            does not display.  Dates entered without century digits
            default to the twentieth century.

            When CENTURY is ON, a date field displays with a four-digit
            year and non-twentieth century dates can both be displayed
            and input.

            Clipper supports all dates in the range 01/01/0100 to
            12/31/2999.

Library:    CLIPPER.LIB


----------------------------------- Examples -------------------------------

   SET CENTURY OFF
   ? DATE()                && Result: 09/01/87

   SET CENTURY ON
   ? DATE()                && Result: 09/01/1987


   SET CENTURY (DATE() >= CTOD("01/01/2000")


See Also: SET DATE CTOD() DATE() DTOC() YEAR()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson