EOMONTH Function is used to return last day of the month of the specified date.
Syntax
select EOMONTH(TRY_CONVERT(date,'3-10-2017',105))
Optional parameter in EOMONTH Function
The EOMONTH has the optional parameter for the month which is of int data type. If we passed the same it will increment the month as defined in the parameter.