kingnothingz
Registered User.
- Local time
- Today, 06:17
- Joined
- Feb 14, 2009
- Messages
- 24
Hi all,
I have a situation wherein i have to calculate the age of a person at a particular time based on two dates.
Eg:
Date Of Birth = 01/01/1990
Date of Insurance Start = 14/02/2000
Age at Insurance start = ??
--------
I'm using DateDiff as follows
DateDiff("YYYY",DateOfBirth,DateOfInsurance)
This is fine, but my problem is that the dates are entered in a form and i need to display and store the output of the DateDiff in another field (AgeAtInsurance)
Not sure how to go about doing this.
Any help in this regard is appreciated.
Thanks
I have a situation wherein i have to calculate the age of a person at a particular time based on two dates.
Eg:
Date Of Birth = 01/01/1990
Date of Insurance Start = 14/02/2000
Age at Insurance start = ??
--------
I'm using DateDiff as follows
DateDiff("YYYY",DateOfBirth,DateOfInsurance)
This is fine, but my problem is that the dates are entered in a form and i need to display and store the output of the DateDiff in another field (AgeAtInsurance)
Not sure how to go about doing this.
Any help in this regard is appreciated.
Thanks