DEV Community

Sameer
Sameer

Posted on

Answer:

The simple answer is don't; never store a persons age. It changes for each person yearly but, as you say, you have to check that it's correct for every person daily.

Only store the date of birth, and then calculate the age when selecting from the database. It's only today

Top comments (0)