get an age from a D.O.B field

Posted by aadersh patel on Stack Overflow See other posts from Stack Overflow or by aadersh patel
Published on 2010-03-28T17:56:35Z Indexed on 2010/03/28 18:03 UTC
Read the original article Hit count: 231

Filed under:
|
|

I need to calculate the age of a "customer" from their date of birth.

have tried to use:

DATEDIFF(year,customer.dob,"2010-01-01");

but it doesnt seem to like it.

Any ideas, I KNOW its going to be something simple!?

Thanks

© Stack Overflow or respective owner

Related posts about mysql

Related posts about date