CMONTH() Convert a date to a character month name ------------------------------------------------------------------------------ Syntax CMONTH(<dDate>) --> cMonth Arguments <dDate> is the date value to convert. Returns CMONTH() returns the name of the month as a character string from a date value with the first letter uppercase and the rest of the string lowercase. For a null date value, CMONTH() returns a null string (""). Description CMONTH() is a date conversion function useful for creating formatted date strings that can be used in reports, labels, or screens. Examples . These examples illustrate CMONTH(): ? CMONTH(DATE()) // Result: September ? CMONTH(DATE() + 45) // Result: October ? CMONTH(CTOD("12/01/94")) // Result: December ? SUBSTR(CMONTH(DATE()), 1, 3) +; STR(DAY(DATE())) // Result: Sep 1 Files Library is CLIPPER.LIB.
See Also: CDOW() DATE() DAY() MONTH() YEAR()