Dear
sir
I want to say that how to get the age of birthday in to date difference
Example current date - date of birth
Please Explain me
Regards
UmashankarSahu
How To get Age
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

kumar varma8 reputationPosted Dec 7, 2012, 8:30 PM EST
UmashankarSahu
I Hope this code will be useful to you.
//Public DateTime Current_Date=DateTime.Now; (write this line after Initializecomponent(); } )
DateTime dob=dateTimePicker1.value;
DateTime PresentYear=Current_Date;
TimeSpan ts=PresentYear - dob;
int age = ts.Days / 365;
// and assign the ts value into textbox u want;
textbox.text=age.ToString();
Regards,
Kumarvarmareddy
VulpesRank #55 · 29.2K reputationPosted Dec 8, 2012, 1:10 AM EST
To deal with this problem, I usually calculate age using a notional 372 day year which contains 12 months of 31 days each:
The above algorithm assumes that a person born on 29 February in a leap year celebrates their birthday on 1 March in a non-leap year.