spewn
Programmer
- May 7, 2001
- 1,034
hello!
i know i have to use DateDiff, as in this format:
but not sure how to format the sql query.
my field for date of birth is mDOB, and i want to return age for each entry in db.
any help?
- g
i know i have to use DateDiff, as in this format:
Code:
DATEDIFF(yyyy,mDOB,getdate())
but not sure how to format the sql query.
my field for date of birth is mDOB, and i want to return age for each entry in db.
any help?
- g