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


Syntax:     DAY(<expD>)

Purpose:    To convert a date value to a number identifying the day of
            the month.

Argument:   <expD> is a date value to convert.

Returns:    An integer numeric value.

            DAY() returns a number in the range of zero to 31 depending
            on the month of <expD>.  If the month is February, leap
            years are accounted for and the number returned is either 28
            or 29.  In Clipper, if the date argument is February 29 and
            the year is not a leap year, the value returned is zero.  If
            the date argument is empty, then DAY() returns zero.

Usage:      DAY() is useful when you want to use the day of a month
            during calculations.

Library:    CLIPPER.LIB


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

   ? DATE()                      && Result: 09/01/87
   ? DAY(DATE())                 && Result: 1
   ? DAY(DATE()) + 1             && Result: 2
   ? DAY(CTOD(""))               && Result: 0


See Also: CDOW() DOW() MONTH() YEAR()

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