SyntaxFix
Write A Post
Hire A Developer
Questions
Starting with SQL Server 2012:
SELECT DATEADD(DAY,1,EOMONTH(@mydate,-1))