Official Content

Returns the last date of the month of a given date.

Syntax

Date | DateTime.EndOfMonth()

Where:

Date | DateTime
     
Is an attribute or variable based on the Date/DateTime data type, to which the method will find its last date.

Type Returned:
Date|DateTime

Scope

Data Types: DateDateTime
Generators: .NET, .NET Framework, Java, RPG, Ruby (up to GeneXus X Evolution 3), Visual FoxPro (up to GeneXus X Evolution 3)

Description

This method returns the last date of the month in the data type received; that is, the result's data type will be the same as the given original value (Date or DateTime).

Samples

&Var = &Birthday.EndOfMonth()  // where &Birthday: 08/28/2009  The result is: 08/31/09

See Also

TimeZone Support - General Considerations
EoM function


 


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