Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Feedback on: irt.org FAQ Knowledge Base Q29

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


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 21st December 2007. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.