Returns the last date of the month of a given date.
Date | DateTime.EndOfMonth()
Date | DateTime
Is an attribute or variable based on the Date/DateTime data type, to which the method will find its last date.
Data Types: Date, DateTime
.NET Framework, Java, RPG, Ruby (up to GeneXus X Evolution 3), Visual FoxPro (up to GeneXus X Evolution 3)
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).
&Var = &Birthday.EndOfMonth() // where &Birthday: 08/28/2009 The result is: 08/31/09
TimeZone Support - General Considerations