Forum Replies Created

Viewing post 1 (of 1 total)

  • RE: Best Way to Calculate Age

    sorry the 3rd answer is not 100% correct as written

    DECLARE @DateOfBirth DATETIME

    SET @DateOfBirth='08/xx/1975' --commented out the day just because

    SELECT DATEDIFF(yy, @DateOfBirth, GETDATE()) AS [first],

    FLOOR(CONVERT(decimal(9, 2), DATEDIFF(d, @DateOfBirth, GETDATE()))...

Viewing post 1 (of 1 total)