[PHP/SQL] Calculate Age


16 replies to this topic - - - - -

#16 BGM

    Wibble Wobbleâ„¢

  • 5,880 posts
  • Joined: 30-March 03
  • Location: Farnborough, UK

Posted 13 June 2011 - 18:45

View Postrev23dev, on 13 June 2011 - 17:00, said:

Leap years will throw that off so it is inaccurate.
hmm.. correct :(


#17 +scumdogmillionaire

    Neowinian Senior

  • 2,272 posts
  • Joined: 23-October 01
  • Location: Denver, CO
  • OS: Windows 8 Pro
  • Phone: Nokia Lumia 920

Posted 13 June 2011 - 19:52

View PostBGM, on 13 June 2011 - 18:45, said:

hmm.. correct :(

You could always determine how many leap years have passed between the date in question and the current date and then subtract that -- but that just seems... silly ;) (and actually even then it might be wrong...)