// get the difference in yearsint years = DateTime.Now.Year - BirthDate.Year;
// subtract another year if we're before the
// birth day in the current year
if (DateTime.Now.Month < BirthDate.Month (DateTime.Now.Month == BirthDate.Month && DateTime.Now.Day < BirthDate.Day))
years--;
Monday, September 20, 2010
Calculation of date Of birth
Posted by
codeguru
at
11:25 PM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment