Jump to content

Welcome Guest! To access all forums & features, please register an account or sign-in. → Why register?




Photo

[PHP/SQL] Calculate Age


  • Please log in to reply
16 replies to this topic - - - - -

#16 BGM

BGM

    Wibble Wobbleâ„¢

  • 5,903 posts
  • Location: Farnborough, UK

Posted 13 June 2011 - 18:45

Leap years will throw that off so it is inaccurate.

hmm.. correct :(


#17 +scumdogmillionaire

scumdogmillionaire

    Neowinian Senior

  • 2,316 posts
  • Location: Denver, CO
  • OS: Windows 8 Pro
  • Phone: Nokia Lumia 920

Posted 13 June 2011 - 19:52

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...)