: I want to return a person's age, in years, given the birth date. I have a text box where the age lies:
: text1.text = 24.2.89
: And i want to retrieve her age.
: The code i'm using returns stupid ages (ex: -354)
: Here goes my code:
: Label1.Caption = Int(DateDiff("y", CDate(Text1.Text), Date) / 365.25)
: Can anyone help, please?
:
It works fine, just a type mismatch
try entering date like:
24 Feb 1989 or 24/2/89
Regards,
______
Jomac.