asp :: calculate age
asp :: calculate age
Function Age(ByVal dtBirthDate As Date) As Integer Dim intAge As Integer intAge = DateDiff(DateInterval.Year, dtBirthDate, Today()) If Today() < DateSerial(Year(Today()), Month(dtBirthDate), Day(dtBirthDate)) Then intAge = intAge - 1 End If Return intAge End Function