rdijk (2/5/2008)
isn't this a little easier??CREATE Function GetMonthEnd(@Date DateTime)
Returns DateTime
AS
RETURN dateadd(d,(day(@date)) * -1,@date)
END
Heh... only when you actually make it return the correct answer 😉
--Jeff Moden
Change is inevitable... Change for the better is not.