Forum Replies Created

Viewing post 1 (of 2 total)

  • RE: Best Way to Calculate Age

    The following formula could be more accurate

    (DATEDIFF(yy, @dob, getdate()) - CASE

    WHEN DATEPART(m, @dob) < DATEPART(m, getdate()) THEN 0

    WHEN DATEPART(m, @dob) = DATEPART(m, getdate()) AND DATEPART(d, @dob) <= DATEPART(d, getdate())...

Viewing post 1 (of 2 total)