Created
November 19, 2015 11:34
-
-
Save wingedpanther/8b64583b4fad1e2c5a91 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Function CALCULATE_AGE(ByVal dob As Date) As Integer | |
Dim age As Integer | |
age = Today.Year - dob.Year | |
If (dob > Today.AddYears(-age)) Then age -= 1 | |
Return age | |
End Function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment