endOfMonth(<Date>) : Date
The endOfMonth function is used to get the last day of the month of the specified date parameter.
When you use static dates, you need to enclose the value with the # symbol. The date should be in the following format - dd/mm/yyyy hh:mm
endOfMonth(#26/04/2021 12:00#, 2) => #30/04/2021 12:00#
Learn more about how you can get started using the Formula Field.
Type above and the results will be displayed here.