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>date()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
DATE()


Syntax:     DATE()

Purpose:    To return the system date as a date value.

Returns:    A date value.

            DATE() returns the system date in a format set by any
            combination of SET DATE and SET CENTURY.  The default is
            AMERICAN and CENTURY OFF ("mm/dd/yy").

Usage:      DATE() provides a means of initializing memory variables to
            the current date, comparing other date values to the current
            date, and performing date arithmetic relative to the current
            date.

Library:    CLIPPER.LIB


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

   ? DATE()                   && Result: 09/01/87
   ? DATE() + 30              && Result: 10/01/87
   ? DATE() - 30              && Result: 08/02/87
   datevar = DATE()
   ? CMONTH(datevar)          && Result: September

   SET CENTURY ON
   SET DATE ANSI
   ? DATE()                   && Result: 1987.09.01


See Also: SET CENTURY SET DATE CTOD() DTOC() DTOS()

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