The Cutting Edge Tech Blog


Calculating age from Date of birth by FSherratt

Calculating age from Date of Birth

This has baffled me for years but a couple of nights ago I finally cracked it. How to accurately work out someones Age from their DOB. For this tutorial I’m using the english method of presenting dates DD-MM-YYYY rather than the american way.

It actually rather simple by comparing the date of birth to the current date you can not only work out their age but also whether it’s their birthday or not.

Continue reading