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 | 3424 [ previous next ]

Feedback on:
irt.org FAQ Knowledge Base Q29

Sent by
Stephen Oskoui on December 15, 2001 at 10:18:02:

Worth:
Worth reading

Comments:
There is a bug in this code, because of the way getYear() works.

It returns a 4 digit value for years greater than 1999, but a 2 digit value for years earlier than 2000.

THIS SHOULD BE CHANGED:
var yearDob = dob.getYear();

TO THIS:
var yearDob = dob.getYear();
if (yearDob < 100) yearDob = yearDob + 1900


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.