Official Content

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.

Syntax

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)

Scope

Objects: Procedure, Transaction, Web Panel Panel, Data Provider
Generators: .NET, .NET Framework, JavaApple, Android, Angular

Samples

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.

See Also

MonthName method
CDoW function

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant