Official Content

Returns the numeric month identifier in a given date.

Syntax

Month(Date-Expression | Datetime-Expression)

Type Returned:
Numeric(2)

A null value (0) is returned if the received parameter is null.

Scope

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

Samples

&Month = Month(CToD('01/01/08')) // Result &Month: 1
&Month = Month(Now()) // Result &Month: 2 If Now() = 25/02/08 10:30 

See Also

TimeZone Support - General Considerations
Month method
Year function
Day function

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