Calculate age from date

soffe

New Member
i have to calculate the age from today's date. so i have a text field to enter the D.O.Band the other to show the result.\[code\]int age = Convert.ToInt32(TextBox1.Text);int findage = DateTime.Now.Year - (int.Parse(age));???\[/code\]not getting how to do it.and also how to fromat 'age' into date
 
Back
Top