I need to get 03-01
as the result @startmonth
but I keep getting
Conversion failed when converting date and/or time from character string.
DECLARE @startmonth date, @newdate date
SELECT @newdate = DATEADD(DAY, 1, CONVERT(DATE, '2012-02-29'))
SELECT @startmonth = CONVERT(DATE,RIGHT(RTRIM(CONVERT(DATE,@newdate)),5))
print @startmonth