searls03 Posted April 29, 2011 Share Posted April 29, 2011 is there a way for php to calculate age based on birthdate with mm/dd/yyyy format? or do I need some converter? if so, how? Quote Link to comment https://forums.phpfreaks.com/topic/235077-age-calculator/ Share on other sites More sharing options...
fugix Posted April 29, 2011 Share Posted April 29, 2011 yes you could subtract the date now using either the now() function or date function, from the date that they were born Quote Link to comment https://forums.phpfreaks.com/topic/235077-age-calculator/#findComment-1208119 Share on other sites More sharing options...
searls03 Posted April 29, 2011 Author Share Posted April 29, 2011 is there any google suggestions you could give me to help me get started? is it possible in that format? Quote Link to comment https://forums.phpfreaks.com/topic/235077-age-calculator/#findComment-1208120 Share on other sites More sharing options...
fugix Posted April 29, 2011 Share Posted April 29, 2011 yes it should be possible in any format i would think..just have to make sure that the formats of the date now and the birthdate match.. Quote Link to comment https://forums.phpfreaks.com/topic/235077-age-calculator/#findComment-1208123 Share on other sites More sharing options...
fugix Posted April 29, 2011 Share Posted April 29, 2011 found something that could point you in the right direction.. here Quote Link to comment https://forums.phpfreaks.com/topic/235077-age-calculator/#findComment-1208124 Share on other sites More sharing options...
Maq Posted April 29, 2011 Share Posted April 29, 2011 is there any google suggestions you could give me to help me get started? is it possible in that format? Did you even try to Google yourself? There are literally thousands of related hits. Quote Link to comment https://forums.phpfreaks.com/topic/235077-age-calculator/#findComment-1208148 Share on other sites More sharing options...
searls03 Posted April 29, 2011 Author Share Posted April 29, 2011 yes, but I couldn't really think of the right keywords. Quote Link to comment https://forums.phpfreaks.com/topic/235077-age-calculator/#findComment-1208153 Share on other sites More sharing options...
Maq Posted April 29, 2011 Share Posted April 29, 2011 yes, but I couldn't really think of the right keywords. Really? Cause this seems pretty accurate and it's in your first post: php to calculate age Quote Link to comment https://forums.phpfreaks.com/topic/235077-age-calculator/#findComment-1208156 Share on other sites More sharing options...
fugix Posted April 29, 2011 Share Posted April 29, 2011 did the link that i gave you help at all? Quote Link to comment https://forums.phpfreaks.com/topic/235077-age-calculator/#findComment-1208158 Share on other sites More sharing options...
searls03 Posted April 29, 2011 Author Share Posted April 29, 2011 yep, thanks Quote Link to comment https://forums.phpfreaks.com/topic/235077-age-calculator/#findComment-1208159 Share on other sites More sharing options...
fugix Posted April 29, 2011 Share Posted April 29, 2011 no problem Quote Link to comment https://forums.phpfreaks.com/topic/235077-age-calculator/#findComment-1208164 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.