/ Published in: MySQL
Some code I found for calculating and determining a persons age
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
DATE_FORMAT(NOW(), '%Y') - DATE_FORMAT(DOB, '%Y') - (DATE_FORMAT(NOW(), '00-%m-%d') < DATE_FORMAT(DOB, '00-%m-%d')) >= 65