vb: how to calculate age?
This site provides users with the information about vb, visual basic, vb6, calculate age, how to find out age, age calculation, and more.
If you think that this site is helpful, please recommend your friends to visit our site.
How to calculate age?
The following is the code for age calculation:
Dim Birth As Date
Dim myDOB as String
Dim Age As Integer
myDOB = "06/22/1976" 'date format dd/mm/yy
Birth = DateValue(myDOB)
Age = Int(DateDiff("D", Birth, Now) / 365.25)