Date function

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dears,

Need help in populating the month and year after entering the date of birth
in a field. Tried below but only gives me the number of years

age = DateDiff("yyyy", [dob], Now()) + _
Int(Format(Now(), "mmdd") < Format([dob], "mmdd"))

any suggestion is appreciated

Thanks

Nicole
 
Back
Top