Program is actually so simple but fails to execute when I enter a date like 09/21/1993. A person who's born on that date is obviously under 25 but output is "YES" because of 2018-1993=25. How do I prevent that?
dateOfBirth = CDate(txtBirth.Text)
a = (DateDiff(DateInterval.Year, dateOfBirth, Today))
If a < 25 Then
txt25.Text = "NO"
Else
txt25.Text = "YES"