Site icon Database Tutorials

EOMONTH Function in SQL Server(TSQL)

You can find the last day of a month using EOMONTH function. In addition, you can use a second parameter that add a specific number of month to the specified value by the first parameter. The second parameter is optional.

EOMONTH with only first parameter:

EOMONTH with two parameter:

Exit mobile version