[Solved] Finding Date of Birth given age in months [closed]


DateTime has perfect method to substract (actually add negative value) months from current date. For example:

int ageInMonths = 18;
DateTime dt = DateTime.Today;
DateTime DateOfBirth = dt.AddMonths(-ageInMonths);

solved Finding Date of Birth given age in months [closed]