DECLARE @day CHAR(2) SET @day = DATEPART(DAY, GETDATE()) PRINT @day
If today was the 9th of December, the above would print \"9\".
I want
SELECT RIGHT('0' + CONVERT(VARCHAR(2), Month( column_name )), 2) FROM table