Compare Age between two Dates using C# and VB.Net in ASP.Net

Last Reply one year ago By dharmendr

Posted one year ago

i want to validate a used for registration if he is  between 16 to 25 years before or on a given date suppose 30/11/2018 so how can i validate in c# if his age is 25 year and 1 day then dont allow to submit form how can i achive this?

This question does not have replies that have been liked.