Declare @LastDay datetime='2013-02-25'select DATEADD(MM,DATEDIFF(MM,0,@LastDay)+1,0)-1 [LastDay Of a Month]
Declare @LastDay datetime='2013-02-25' SELECT DATEADD(Month,1,@LastDay) - DAY(@LastDay) [LastDay Of a Month]
Login to post response