DECLARE @d DATETIME DECLARE @y INT SET @d=’29.10.03’ SET @y=DATEPART(yy,@d) SELECT @y