The EOMONTH function is used to find the last date of the month of the “Number of months” specified in the function, from the given start date.
Note: This function can also be used to find the last date of the past month from the given start date and the number of months.