Returns the name of the month for a given date in the selected language. If no language is specified, the one selected in the Model Properties is used.
The value 'spaces' is returned if the received parameter is null.
CMonth(Date-Expression | Datetime-Expression [,Language])
Where:
Language must be one of the following:
Spanish
English
Portuguese
Italian
SimplifiedChinese
TraditionalChinese
Japanese
Arabic
German
Type Returned:
Character(9)
Objects: Procedure, Transaction, Web Panel,
Panel, Data Provider
Generators: .NET, .NET Framework, Java, Apple, Android,
Angular
CMONTH(CTOD('01/01/2013')) // 'Enero' if Spanish is set as the default language.
CMONTH(CTOD('01/01/2013'), 'por') // Janeiro
CMONTH(CTOD('01/01/2013'), 'eng') // January
Note: Make sure the languages are installed on the KB.
MonthName method
CDoW function