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

Syntax:     CMONTH(<expD>)

Purpose:    To convert a date value to a string representing the name of
            the month.

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

Returns:    A character string.

            CMONTH() returns the name of the month from a date value
            with the first letter in upper case and the rest of the
            string in lower case.  The maximum return value length is
            nine characters for the month of September.  A null date
            value returns a null string ("").

Usage:      CMONTH() is useful for creating formatted date strings that
            you can use in reports, labels, or screens.

Library:    CLIPPER.LIB


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

   ? CMONTH(DATE())                       && Result: September
   ? CMONTH(DATE() + 45)                  && Result: October
   ? SUBSTR(CMONTH(DATE()), 1, 3) +;
     STR(MONTH(DATE()))                   && Result: Sep  1


See Also: MONTH()

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