Jump to content

Archived

This topic is now archived and is closed to further replies.

robcrozier

getting exact age of a person given their DOB

Recommended Posts

can anyone help me?

im trying to get the exact age of a person from my database using their date of birth. Obviously you subtract their date of birth from the current date and that gets you somewhere close but i need to fidn out if their birthday has passed etc in order to find out exactly how old they are

cheers!!!

Share this post


Link to post
Share on other sites
I'm not sure I understand -- the date math you describe will give you their precise age. If you need to know if their birthday has passed, simply look at the date and forget about the year.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.