how to generate a dynamic date which displays the last day of each month

Which formula should be entered in cell G2 to generate a dynamic date which displays the last day of each month?

Which formula should be entered in cell G2 to generate a dynamic date which displays the last day of each month?