You are here: irt.org | About | Feedback | 4035 [ previous next ]
Feedback on:
irt.org FAQ Knowledge Base Q29
Sent by
Pat Richard on July 29, 2002 at 18:41:30:
Worth:
Worth reading
Comments:
There is an error in your script. If you attempt to use a birthdate from the 1900's, you get an inacurrate reading (I know I'm not 1936 years old!).
Here is the fix:
Under the line that reads:
var yearDob = dob.getYear();
add the following:
if (yearDob < 2000){
yearDob = yearDob +1900;
}
problem solved. The correct age is now displayed.
Other feedback on 'irt.org FAQ Knowledge Base Q29' - show all