SQL Server Last Day of Month: EOMONTH, Previous and Next Month
Use EOMONTH. The SQL Server last day of month is one call, and a second argument shifts months: It returns a date, never a time. Tested on SQL Server 2025 Developer (17.0.1000.7). EOMONTH needs SQL Server 2012 or later. EOMONTH Syntax: EOMONTH(start_date [, month_to_add]) start_date is any date type or date string; month_to_add is an … Read more >>