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)
'Calculate age
Age = Int(DateDiff("D", Birth, Now) / 365.25)
MsgBox Age
--------------------------------------------------------------------------------
(Website Helper) how to calculate age (c) EduSoftMax - www.edusoftmax.com
No comments:
Post a Comment