MySQL Age Calucation


/ Published in: MySQL
Save to your folder(s)

Some code I found for calculating and determining a persons age


Copy this code and paste it in your HTML
  1. DATE_FORMAT(NOW(), '%Y') - DATE_FORMAT(DOB, '%Y') - (DATE_FORMAT(NOW(), '00-%m-%d') < DATE_FORMAT(DOB, '00-%m-%d')) >= 65

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.