EOMONTH
Date

Returns the last day of the month before or after a specified number of months

Syntax:

=EOMONTH(start_date, months)

Example:

=EOMONTH("1/1/2023", 1)