Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback on: irt.org FAQ Knowledge Base Q29, December 15, 2001 at 10:18:02:

You are here: 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

©2018 Martin Webb