Jump to content

Age calculation


matfish

Recommended Posts

The thought that a lot of people have all ready created a function to do just that came to my mind and yup that function can be found with google.

http://www.javascriptkit.com/script/script2/calculateage.shtml

 

just a matter of linking the functions togehter and your done

Link to comment
https://forums.phpfreaks.com/topic/57453-age-calculation/#findComment-284353
Share on other sites

Hi, Thanks for the link.

 

If I was confident enough with javascript I would have figured it out by now. Its not exactly overcoming the problem that when Iv selected the date, I need to calculate the age from a dd-mm-yyyy format (if I could explosed the date like I would in php I wouldnt have an issue).

 

Any ideas? Take a date from dd-mm-yyyy in an input box and explode it to format: displayage(yyyy, mm dd, "years", 0, "rounddown")

 

?

Link to comment
https://forums.phpfreaks.com/topic/57453-age-calculation/#findComment-284879
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.