Click here to Skip to main content
15,891,723 members
Articles / Programming Languages / SQL

Get an Accurate Age by Date

24 Mar 2010CPOL 2.9K   2   1
Hey guys,Often using "Datediff" doesn't work because if today is 20th February and the date is 25th June, it means that he had already had birthday! X| So if you want to know how old something is and you just have a date, use this function:SET ANSI_NULLS ONGOSET...
Only logged in members can view this content

Please go to the SQL Table of Contents to view the list of available articles in this section.