i want to design an application in which user select year ,month and day of month from the dropdown list and then program will tell the age of the user.example will be help ful
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Deepak SainiRank #2,411 · 586 reputationPosted Apr 6, 2015, 4:52 AM EDT
concante your date with all dropdown and pares into date and use this formula.
int age = ( Int32.Parse(DateTime.Today.ToString("yyyyMMdd")) - Int32.Parse(birthday.ToString("yyyyMMdd"))) / 10000;umair mohsinRank #3,092 · 463 reputationPosted Apr 6, 2015, 7:53 PM EDT
I am new toa sp.net environment so i don't understand what exactly you said.can you send me any example /link for this
Khargesh RajputRank #616 · 3.9K reputationPosted Apr 6, 2015, 8:01 PM EDT
http://www.webcodeexpert.com/2013/07/get-age-in-yearsmonthsdayshours-and.html
Gowtham RajamanickamRank #57 · 29K reputationPosted Apr 7, 2015, 2:00 AM EDT
Gowtham RajamanickamRank #57 · 29K reputationPosted Apr 7, 2015, 2:00 AM EDT