Function CMonth() Foundation

Converts a date value into name of the month.

Syntax
CMonth( <dDate> ) --> cMonth
Parameters
<dDate>
<dDate> is a date expression whose month name is determined.
Return

The return value of CMonth() is a character string containing the name of the month in the date expression. The month name is returned in mixed case. If the date expression contains an empty date, a null string ("") is returned.

Description

The conversion function CMonth() is used to format date values for output on the screen, reports, or labels. The language specific return value is dependent on the operating system's country settings.

Examples
CMonth()

// The example shows various results of CMonth() 

PROCEDURE Main 

   ? CMonth(Date())                 // result: December 
   ? CMonth(Date() + 60)            // result: February 

   ? SubStr( CMonth(Date()), 1, 3) + ". " +; 
     Str( Day(Date()) ,2)          + ", " + ; 
     Str( Year(Date()) ,4)          // result: Dec. 6, 1994 

RETURN 
Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.