EOMONTH

Description

This function returns the last day of the month containing a specified date, with an optional offset. (EOMONTH in Transact-SQL).

Sample Source Pattern

Syntax

EOMONTH ( start_date [, month_to_add ] )  

Examples

Code:

IN -> SqlServer_01.sql
SELECT EOMONTH (GETDATE()) AS Result; 

Result:

    RESULT|
----------+
2022-05-31|

Known Issues

No issues were found.

No related EWIs.

Last updated