So they past an age, and you are calculating their actual date of birth?why are doing all that converting and casting..Declare @age intDeclare @today datetimeDeclare @Start datetimeSet @today = dateadd(d,0,datediff(d,0,getdate()))SET @age = 33SELECT @Start = dateadd(yy,-@age,@today)Print @start
converting date parts to strings and casting it as small date time, only to get "today's date the {age} number of years ago" seems awfully painful way to do things.
Poor planning on your part does not constitute an emergency on my part.