C5_DAY

 DAY()
 Return the day of the month as a numeric value
------------------------------------------------------------------------------
 Syntax

     DAY(<dDate>) --> nDay

 Arguments

     <dDate> is a date value to convert.

 Returns

     DAY() returns a number in the range of zero to 31 as an integer numeric
     value.  If the month is February, leap years are considered.  If the
     date argument is February 29 and the year is not a leap year, DAY()
     returns zero.  If the date argument is empty, DAY() returns zero.

 Description

     DAY() is a date conversion function used to convert a date value to the
     day of a month.  This function is used in combination with CMONTH() and
     YEAR() to format dates.  In addition, it is often used in various date
     calculations.

 Examples

     .  These examples show the DAY() function used several ways:

        ? DATE()                             // Result: 09/01/90
        ? DAY(DATE())                        // Result: 1
        ? DAY(DATE()) + 1                    // Result: 2
        ? DAY(CTOD("12/01/94"))              // Result: 1

     .  This example uses DAY() in combination with CMONTH() and
        YEAR() to format a date value:

        ? CMONTH(DATE()) + STR(DAY(DATE())) +;
           "," + STR(YEAR(DATE()))      // Result: June 15, 1990

 Files   Library is CLIPPER.LIB.

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

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.