victorashi
IS-IT--Management
today i wanted to calculate the difference in years from the date of birth untill today ( how old i am )
so i used the datediff function :
select datediff (year, 1982-01-01, getdate())
(no column name)
---------------------
101
is that possible that i am 101 years old, or i didn`t use the function right , although ....
select getdate()
(no column name)
---------------------
2006-08-01 12:58:31.903
so i used the datediff function :
select datediff (year, 1982-01-01, getdate())
(no column name)
---------------------
101
is that possible that i am 101 years old, or i didn`t use the function right , although ....
select getdate()
(no column name)
---------------------
2006-08-01 12:58:31.903